Jump to content

another newb question


pooker

Recommended Posts

Ok I am playing with php login,

 

Here is a snippet of the code

 

<td width="294"><input name="myusername" type="text" id="myusername"></td>

</tr>

<tr>

<td>Password</td>

<td>:</td>

<td><input name="mypassword" type="text" id="mypassword"></td>

</tr>

 

 

I have already created the variables 

 

$myusername=$_POST['myusername'];

$mypassword=$_POST['mypassword'];

 

Here is where I am a little confused, when the post function fetches the myusername and mypassword from my form dose it notice it by th input name or the input id ?  And if it notices it by one and not the other what is the point for the other?

 

Sorry for really newb questions, I am new we all gotta start somewhere ^^

Link to comment
https://forums.phpfreaks.com/topic/110050-another-newb-question/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.