Jump to content


Photo

HTTP_Post Form?


  • Please log in to reply
1 reply to this topic

#1 2RIP

2RIP
  • Members
  • PipPip
  • Member
  • 15 posts

Posted 05 June 2006 - 12:53 AM

I'm trying to make a login section for my homepage. It says
Your 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" ??

#2 Madatan

Madatan
  • Members
  • PipPipPip
  • Advanced Member
  • 51 posts

Posted 06 June 2006 - 01:42 PM

[!--quoteo(post=380088:date=Jun 4 2006, 07:53 PM:name=2RIP)--][div class=\'quotetop\']QUOTE(2RIP @ Jun 4 2006, 07:53 PM) View Post[/div][div class=\'quotemain\'][!--quotec--]
I'm trying to make a login section for my homepage. It says
Your 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.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users