Hi all, for some reason my post or get vars don’t carry over to the php im submitting to
I have the following form:
[CODE]<form style=”border: 1px dotted white; padding: 5px;” name=”accountCreateForm” action=”create_account_submit” method=”POST” accept-charset=”utf-8″>
User Name:<input type=”text” size=”35″ name =”user_name”/>
Password:<input type=”text” size=”35″ name =”password_1″/>
Repeat Password:<input type=”text” size=”35″ name =”password_2″/>
Email:<input type=”text” size=”35″ name =”email”/>
<a href=”javascript:submitForm()” style=”font-size:40px”>LETS GO!!</a>
</form>
Which ends up calling the following function:
[CODE]
function create_account_submit()
{
$returnValue = UserModel::insertNewUser($_post[‘user_name’], $_post[‘password_1’], $_post[‘password_2′], $_post[’email’]);
if(!$returnValue[0])
{
echo $returnValue[1];
}
}
I did a var_dump inside that function and it came up null. I made the form use GET just to check, and you can see the get vars along the top. They just come up as null when I try to call them through $_get[‘user_name’] for example
And help would be greatly appreciated as always.