Jump to content

Submit link instead of a button


adicrst

Recommended Posts

How can i use a submitting link instead of a button ?

 

here is the simple form

 

<form action="submit.php" method="post">
Name: <input type="text" name="name">
Age: <input type="text" name="age">
<input type="submit" name="send">
</form>

 

nou instead of the button send i want a link to send the informations to the submit.php page

Link to comment
https://forums.phpfreaks.com/topic/85878-submit-link-instead-of-a-button/
Share on other sites

oh and to do this:

 

<a href="submit.php?SOMETHING HERE">link</a>

 

you would need to set-up a predefined form variable; like so:

 

<a href="submit.php?name=John&age=30">link</a>

 

you will need javascript even for that and if you didn't want to do this with javascript. why did you post this thread in the javascript forum and not in the php forum? ???

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.