Jump to content

HTTP_Post Form?


2RIP

Recommended Posts

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" ??
Link to comment
Share on other sites

[!--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 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.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.