Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.