RE: forms and variables?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



[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.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux