homepage Welcome to WebmasterWorld Guest from 54.211.230.186
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
Multiple Forms, Same Page
dkin

10+ Year Member



 
Msg#: 12568 posted 2:23 am on Apr 19, 2006 (gmt 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?

 

Habtom

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 12568 posted 3:45 am on Apr 19, 2006 (gmt 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

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved