[Solved] Need help with POSTing problem
Posted: Mon Mar 22, 2004 5:43 am
Dear All
The following is a basic summary of code I am currently using in a data form. The links (preview.php, clear.php, submit.php, upload.php) are image buttons pointing to those prospective URLs. Each of these pages (preview.php, clear.php, submit.php, upload.php) needs to receive the contents of the INPUT objects within the FORM below in order to carry out processing.
Normally this information is posted to an URL via a SUBMIT button, whereupon the browser is redirected to the single URL given in the ACTION parameter for the form.
However, with only 1 URL able to be given for the form's ACTION parameter (I have left this as ?????.php as I don't know what to put), and with the INPUT objects containing text too large to simply be transferred through the URL via the usual e.g. url.php?text=hello&text2=goodbye, how do I post the information to <I>multiple</I> different URLs, depending on what button the user clicks on?
If it is not possible this way, is it possible any other way?
Many thanks
Mark
The following is a basic summary of code I am currently using in a data form. The links (preview.php, clear.php, submit.php, upload.php) are image buttons pointing to those prospective URLs. Each of these pages (preview.php, clear.php, submit.php, upload.php) needs to receive the contents of the INPUT objects within the FORM below in order to carry out processing.
Code: Select all
<FORM METHOD="post" ACTION="???.php">
<INPUT TYPE="text" LENGTH="3">
<INPUT TYPE="text" LENGTH="10">
<INPUT TYPE="file">
<A HREF="preview.php"><IMG SRC="preview.jpg"></A>
<A HREF="clear.php"><IMG SRC="clear.jpg"></A>
<A HREF="submit.php"><IMG SRC="submit.jpg"></A>
<A HREF="upload.php"><IMG SRC="upload.jpg"></A>
</FORM>However, with only 1 URL able to be given for the form's ACTION parameter (I have left this as ?????.php as I don't know what to put), and with the INPUT objects containing text too large to simply be transferred through the URL via the usual e.g. url.php?text=hello&text2=goodbye, how do I post the information to <I>multiple</I> different URLs, depending on what button the user clicks on?
If it is not possible this way, is it possible any other way?
Many thanks
Mark