papaface Posted July 18, 2007 Share Posted July 18, 2007 Hello, How can I get the name of the form that was used to submit data to my script? regards Quote Link to comment Share on other sites More sharing options...
black.horizons Posted July 18, 2007 Share Posted July 18, 2007 just set a hidden value that is the same as the form name.. Quote Link to comment Share on other sites More sharing options...
papaface Posted July 18, 2007 Author Share Posted July 18, 2007 Is that the only way to do it? Quote Link to comment Share on other sites More sharing options...
Hypnos Posted July 19, 2007 Share Posted July 19, 2007 You could post it as a hidden value. But form name/id is not passed in the HTTP request. Quote Link to comment Share on other sites More sharing options...
hvle Posted July 19, 2007 Share Posted July 19, 2007 Just curious, why do you need to know the form name? Quote Link to comment Share on other sites More sharing options...
papaface Posted July 19, 2007 Author Share Posted July 19, 2007 I have a page called process.php and lots of pages post to it as a central place to process areas of my script. It would be easier to know what to process if I knew the form name. But its okay. I have just named the submit buttons differently. Thanks for you help. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.