faqts : Computers : Programming : Languages : PHP : Common Problems : Forms and User Input

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

4 of 7 people (57%) answered Yes
Recently 3 of 5 people (60%) answered Yes

Entry

How can I find the name of the FORM that was used to POST to a page?

May 28th, 2001 23:59
Henrik Hansen, Reid Brynjolfson, Ben Udall, http://www.php.net/empty, http://www.php.net/isset


You can't do that with PHP because it's serverside, you need to look at 
javascript. What you can do with PHP is check if the variables from the 
form exists on the page, for that look at empty() and isset().