- Impact
- 0
Alright, I'm trying to add forms to a site, so the site owners can post news, links, and additional things without doing any html work at all. I can make the forms, but I don't know how to make them work(this is my first time using forms).
First, I want a login page, just a password....or will I need a username too?:
I'm not sure whether or not I use "get" or "post" for the form method and I don't know how to make it so it goes to "/enternews.html" if the password is correct and nor do I know how to set up the password. :? I think I might just keep the link to the enter news page private, so I don't have to do this login page.
Then, theres the page where you enter the news, this is the page that I NEED - here's what I got:
I also don't know whether to use "get" or "post" here and I don't know how to make it send the info to the index.html. I'm assuming I have to write some new HTML in index.html where it knows where to put the news, correct?
For, the time being, I just want the login page to go to the add news page. Once I get it to work, I'm sure I can figure out how to add the add links page and other pages.
Any information or links to guides would be greatly appreciated...this HTML for Dummies book just isn't cutting it...
-thanks!
EDIT: talked to a friend on AIM....the login one would have to be in php, wouldnt it?
First, I want a login page, just a password....or will I need a username too?:
Code:
<html>
<head>
<title>Admin Login</title>
</head>
<body bgcolor="#ffffff"><center><br><h2>Admin Login</h2>
<form action="/enternews.html" method="get">
<p>Password: <input type="password" name="psswd" size="20" maxlength="15"></p>
<p><input type="submit" value="Submit" name="submit" size="20" maxlength="15"></p>
</form>
</center>
</body>
</html>
I'm not sure whether or not I use "get" or "post" for the form method and I don't know how to make it so it goes to "/enternews.html" if the password is correct and nor do I know how to set up the password. :? I think I might just keep the link to the enter news page private, so I don't have to do this login page.
Then, theres the page where you enter the news, this is the page that I NEED - here's what I got:
Code:
<html>
<head>
<title>News Form</title>
</head>
<body bgcolor="#ffffff"><center><h2>News Form</h2>
<form action="/index.html" method="post" name="Date" width="500" height="500">
<p>Date: <input type="text" name="date" size="30" maxlength="25"><br><i>Example:</i> Jan. 6, 2005</p>
<p><div align="top">News: </div><textarea rows="10" cols="30">Put news here.</textarea></p>
<p>Written by: <input type="text" name="date" size="20" maxlength="20"></p>
<p><input type="submit" value="Submit"> <input type="reset" value="Clear"></p>
</form>
</center>
</body>
</html>
I also don't know whether to use "get" or "post" here and I don't know how to make it send the info to the index.html. I'm assuming I have to write some new HTML in index.html where it knows where to put the news, correct?
For, the time being, I just want the login page to go to the add news page. Once I get it to work, I'm sure I can figure out how to add the add links page and other pages.
Any information or links to guides would be greatly appreciated...this HTML for Dummies book just isn't cutting it...
-thanks!
EDIT: talked to a friend on AIM....the login one would have to be in php, wouldnt it?
Last edited:















