Jump to content

form action?


neo0506

Recommended Posts

You put the action attribute in the form tag for the data in the form to be submitted to. You also want to use the method tag to specify wether the data is sent in the POST object or on the query string using GET

 

<form action="processingpage.php" method="POST">
---Form elements go here
</form>

Link to comment
https://forums.phpfreaks.com/topic/37371-form-action/#findComment-178659
Share on other sites

This is what I have written for the action form.

 

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

<input type=submit value="Finished">

</form>

 

but when I click the button, it doesn't go to he qmodpage.php.  The page just blinks when I click on the button.

 

please help!

 

thank you!

Link to comment
https://forums.phpfreaks.com/topic/37371-form-action/#findComment-178672
Share on other sites

if you aren't sending any data collected in the form why are using a button when aimple a link is what is caled for?

 

<form action="qmodpage.php" method="post">
// other inputs for data....
<input type="submit" name="submit" id="submit" value="Finished">
</form>

 

if you just want a link that looks like a button (and don't care about js being enabled or not) then

 

<input type="button" value="Finished" onclick="window.location='qmodpage.php';">

 

Link to comment
https://forums.phpfreaks.com/topic/37371-form-action/#findComment-179035
Share on other sites

Here's where you went wrong:

 

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

              <input type=submit value="Finished">

            </form>

 

 

<form action="qmodpage.php" method="post">
<input type="button" name="submit" value="Finished">
</form>

Link to comment
https://forums.phpfreaks.com/topic/37371-form-action/#findComment-181532
Share on other sites

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.