Welcome to WebmasterWorld Guest from 54.147.44.13

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

Multiple Forms, Same Page

     
2:23 am on Apr 19, 2006 (gmt 0)

Preferred Member

10+ Year Member

joined:Mar 4, 2004
posts:553
votes: 0


I have about 3 forms on the same page, they will also be submitting to that page, how can I defere between the forms safely when one is submitted?
3:45 am on Apr 19, 2006 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Nov 15, 2004
posts:1867
votes: 0


:) Give different names to your submit buttons, and when the page is submitted write something like:

if isset($_REQUEST['submit1']) { do this }
if isset($_REQUEST['submit2']) { do second }
if isset($_REQUEST['submit3']) { do third }

Habtom