Jump to content

form forward not working. Help


naveendk.55

Recommended Posts

Form forward is not working in below code.  Once I click on submit button, it is not forwarding the results to codetesting.php.

 

 

 

<html>

   

    <head>

   

    </head>

       

    <body>

   

        <form  method="post" action="codetesting.php">

           

<select name="Para">

   

<option value="Yes"> Yes </option>

<option value="No"> No </option>

<option value="NA"> NA </option>

 

</select>

 

        </form>

 

             

  <input type="submit" name="submit" value="Submit">

       

        </body>

       

</html>

Link to comment
https://forums.phpfreaks.com/topic/245413-form-forward-not-working-help/
Share on other sites

the submit button needs to be inside the <form></form> tags:

<form  method="post" action="codetesting.php"> 
            
<select name="Para">
    
<option value="Yes"> Yes </option>
<option value="No"> No </option>
<option value="NA"> NA </option>

</select>
<input type="submit" name="submit" value="Submit">
        </form> 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.