Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
Trending News
Simple PHP Question!?
I used the following example: http://www.brainbell.com/tutorials/php/Checking_Ma...
to create a form that has 3 mandatory fields.
Now I want the form to post data to another form if the mandatoy fields are filled, how should I do this?
P.S. I hate javascript so no javascript solutions!
1 Answer
- Anonymous1 decade agoFavorite Answer
example
index.php
<?
if($_SERVER['REQUEST_METHOD'] == POST){
echo <form method=\"post\" action=\"$_SERVER['PHP_SELF']\"><input type=\"text\" name=\"required_first_name\" value=\"$_POST['required_first_name\"><input type=\"submit\" value=\"Submit\">";
}
else
{
echo "<form method=\"post\" action=\"$_SERVER['PHP_SELF']\"><input type=\"text\" name=\"required_first_name\"><input type=\"submit\" value=\"Submit\">";
}
?>
that should help put you in the right direction.