RE: [PHP] forms and variables?

From: Date: Fri, 21 Apr 2006 12:54:41 +0000
Subject: RE: [PHP] forms and variables?
Groups: php.general 
Request: Send a blank email to php-general+get-234478@lists.php.net to get a copy of this message
[snip] Probably a stupid one but anyway... In PHP. Is it possible to point to a variable with the HTML form name by which it was posted from? Example: //point to the variable with something like or somenthing??? $AddNew.SomeVar <form name="AddNew" method="post" action="<? $PHP_SELF ?>"> $SomeVar = "Add"; </form> <form name="DeleteOld" method="post" action="<? $PHP_SELF ?>"> $SomeVar = "Del"; </form> Or do I just have name the variables uniquely? [/snip] You could write a function...looks like you're trying to do something similar to DOM.

« previous php.general (#234478) next »