Jump to content

Archived

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

2RIP

HTTP_Post Form?

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" ??

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

×

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.