Unstoppable Domains โ€” Get your daily AI drops report

HTML: Forms

SpaceshipSpaceship
Watch

mak

Established Member
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?:

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:
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
0
•••
HTML on its can not make anything like login forms, post news, you need somthing like php and mysql.

PJ
 
0
•••
Yeah, ignorant me, soon found that out. :(
 
0
•••
Sorry, dude, if you want I can look for a tutorial, or make one for you!

PJ
 
0
•••
Nah, it's good. No worries. This script I found is really good. :)
 
0
•••
Dynadot โ€” .com TransferDynadot โ€” .com Transfer
CatchedCatched
Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back