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 Link to comment https://forums.phpfreaks.com/topic/60662-solved-get-form-name/ 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.. Link to comment https://forums.phpfreaks.com/topic/60662-solved-get-form-name/#findComment-301802 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? Link to comment https://forums.phpfreaks.com/topic/60662-solved-get-form-name/#findComment-301805 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. Link to comment https://forums.phpfreaks.com/topic/60662-solved-get-form-name/#findComment-301890 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? Link to comment https://forums.phpfreaks.com/topic/60662-solved-get-form-name/#findComment-301916 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. Link to comment https://forums.phpfreaks.com/topic/60662-solved-get-form-name/#findComment-301920 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.