i have a button in a php page.
i want to learn this buttons name?
for example
<input type="submit" value="blablabla" name="buton1">
how can i learn this buttons value?
In your post array, you should have $_POST['buton1'] => "blablabla"
i wrote
echo $_POST['buton1'];
but nothing...
do this
echo "<pre>"; print_r($_POST); echo "</pre>";
That will show you everything in the post array
returns
Array ( )
there is something else.
you have method="post" in your form tag?
its is here
<form name="form" method="post" action="hr.php?mode=cv&step=4&act=rec" onSubmit="return checkFields();">
this codes works
<? echo $HTTP_POST_VARS['Submit'] . "<br>"; echo $HTTP_POST_VARS['Submit2'];?> </pre> <body> <form name="form1" method="post" action="form.php"> <input type="text" name="textfield"> <input type="submit" name="Submit" value="Submitrrrrrrrrr"> <input type="submit" name="Submit2" value="Submit"> </form>