tags:

views:

25

answers:

2

Is there a way to get the value of the name attribute in the form tag? I'm using PHP and don't see it in $_POST.

+1  A: 

Is there a way to get the value of the name attribute in the form tag? I'm using PHP and don't see it in $_POST.

No, the form's name attribute is not sent through.

The easiest way around this would be adding a <input type="hidden"> containing the name.

Pekka
A: 
<form name="wut">
    <input type="hidden" name="name" value="wut"/>
</form>
Robus