[thelist] Form Submission (POST)

Chris axe at suburbia.com.au
Mon Jun 17 03:27:01 CDT 2002


I couldn't answer question one for you, however, you can have two forms on
one page that submit a different set of data. For example:

<form name='form1' action="proc1.php" method="post">
<input ...>
<input ...>
<input type='submit' value='submit 1'>
</form>
....
<form name='form2' action="proc2.php" method="post">
<input ...>
<input ...>
<input type='submit' value='submit 2'>
</form>

Then if you submit either of the forms (ie: by clicking either submit 1 or
sumbit 2, only the relevent form's data will be sent.

Hope this helps you.
Regards,
Chris



-----Original Message-----
From: thelist-admin at lists.evolt.org
[mailto:thelist-admin at lists.evolt.org]On Behalf Of Burhan Khalid
Sent: Monday, 17 June 2002 17:45
To: thelist at lists.evolt.org
Subject: [thelist] Form Submission (POST)


Hello All :

	This question has a few parts.

	1.	I wanted to know if there was a way to send POST data
without using a form. You know how you can
		append GET query to a link (send.php?id=value;id=value),
etc. Is there a way to do this but with POST?

	2.	If the answer to 1 is no, then is there a way to have
two submit button in the same form that send different 		data?
Currently I have two forms (with no fields displayed). I wanted to be
able to have one form, two
		submit buttons, but each one send different set of data
via POST.

Thanks again,
Burhan Khalid

<tip type = "PHP" author = "Burhan Khalid">

	basename($PHP_SELF) not working?
	Try $_SERVER["PHP_SELF"]

</tip>




--
For unsubscribe and other options, including
the Tip Harvester and archive of thelist go to:
http://lists.evolt.org Workers of the Web, evolt !




More information about the thelist mailing list