I'm trying to learn PHP. My class right now is using ASP and VBSCRIPT (YUK!!)
so I decided to do PHP instead...
but i'm stuck on this.
Lets say I have a page page1.php
and its has
<FORM ACTION = "page2.php">
<INPUT TYPE "Submit" NAME = "Update" VALUE = "UPDATE">
<INPUT TYPE "Submit" NAME = "Delete" VALUE = "DELETE">
</FORM>
and then page2.php
I would like to get the value from what button the user clicked on. (either "UPDATE" or "DELETE")
I dont know how to do this with PHP though.
with VBSCRIPT and ASP its like this
in page2.asp
if(CStr(Request.From("Delete")) = "Delete") then do some crap.
what is a similar function to Request.From? and CStr in PHP?
Thanks for any help.