can we post the same form to more than one page

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
chitrapu
Forum Newbie
Posts: 23
Joined: Sun Jan 14, 2007 11:39 pm

can we post the same form to more than one page

Post by chitrapu »

hello everybody,
i have a small problem. i have a form that has 4 textfields and one listbox. i need to submit this form to two pages. is it possible??? if so can u plz send me a brief code of it.
gavin1996
Forum Newbie
Posts: 22
Joined: Tue Jan 30, 2007 8:30 pm

Re: can we post the same form to more than one page

Post by gavin1996 »

chitrapu wrote:hello everybody,
i have a small problem. i have a form that has 4 textfields and one listbox. i need to submit this form to two pages. is it possible??? if so can u plz send me a brief code of it.

You should Submit this form to a page ,.... one by one
chitrapu
Forum Newbie
Posts: 23
Joined: Sun Jan 14, 2007 11:39 pm

Re: can we post the same form to more than one page

Post by chitrapu »

gavin1996 wrote:
chitrapu wrote:hello everybody,
i have a small problem. i have a form that has 4 textfields and one listbox. i need to submit this form to two pages. is it possible??? if so can u plz send me a brief code of it.

You should Submit this form to a page ,.... one by one


ok, but can u plz tel me with an example
sarbas
Forum Commoner
Posts: 64
Joined: Thu Jan 04, 2007 5:51 am

Submit

Post by sarbas »

Hi,

Check the following link...... it may help you......

http://www.htmlhelp.com/faq/html/forms.html#two-submit
User avatar
louie35
Forum Contributor
Posts: 144
Joined: Fri Jan 26, 2007 8:40 am
Location: Dublin
Contact:

Post by louie35 »

you could use the first page to get the form data, put it in $_SESSION 's
the use it on the first page, then redirect to the second page after which you clear the sessions.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

i think you can use cURL.
User avatar
Ollie Saunders
DevNet Master
Posts: 3179
Joined: Tue May 24, 2005 6:01 pm
Location: UK

Post by Ollie Saunders »

cURL is probably your best bet -- Receive the data to one script and use that script to send it on to another.
User avatar
Kieran Huggins
DevNet Master
Posts: 3635
Joined: Wed Dec 06, 2006 4:14 pm
Location: Toronto, Canada
Contact:

Post by Kieran Huggins »

I know there's no law against shouting in giant bright red type in your signature....
Post Reply