2RIP Posted June 5, 2006 Share Posted June 5, 2006 I'm trying to make a login section for my homepage. It saysYour login must be sent by HTTP_POST and have the following structure:And the Login Code:<form action="first_protected_page_after_login.php" method="POST"><input type="hidden" name="action" value="login"><input type="text" name="userName"><input type="password" name="userPass"><input type="submit"></form>Logout code:<form action="some_existing_protected_page.php" method="POST"><input type="hidden" name="action" value="logout">What is HTTP_Post and how am i suppose to combine these codes together to make a login block on my webpage? Also I i want to resize the width of the text area, where should i add width="185" ?? Link to comment https://forums.phpfreaks.com/topic/11203-http_post-form/ Share on other sites More sharing options...
Madatan Posted June 6, 2006 Share Posted June 6, 2006 [!--quoteo(post=380088:date=Jun 4 2006, 07:53 PM:name=2RIP)--][div class=\'quotetop\']QUOTE(2RIP @ Jun 4 2006, 07:53 PM) [snapback]380088[/snapback][/div][div class=\'quotemain\'][!--quotec--]I'm trying to make a login section for my homepage. It saysYour login must be sent by HTTP_POST and have the following structure:And the Login Code:<form action="first_protected_page_after_login.php" method="POST"><input type="hidden" name="action" value="login"><input type="text" name="userName"><input type="password" name="userPass"><input type="submit"></form>Logout code:<form action="some_existing_protected_page.php" method="POST"><input type="hidden" name="action" value="logout">What is HTTP_Post and how am i suppose to combine these codes together to make a login block on my webpage? Also I i want to resize the width of the text area, where should i add width="185" ??[/quote]The method="POST" is the HTTP_POST and therefor you don't have to add anything. Anyway, you have to make a login page that checks if the username and password exists and if they are correct. But thats another story.<input type="text" name="userName" size="145" />Thats what you can use. Good Luck. Link to comment https://forums.phpfreaks.com/topic/11203-http_post-form/#findComment-42406 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.