answersLogoWhite

0

I think you'd have to use a form with PHP or ASP or JS or something along those lines.

For example, to create a login page in PHP/HTML you need 2 pages.
One to get the user input and one to make use of it (validate username and password).

PAGE 1:
LOGIN.HTML


name:

password:






PAGE 2:
WELCOME.PHP

echo "page text if username is wrong
";
elseif($_POST["fname"]=="whatever you want the username to be...")
{
if($_POST["fpassword"]=="whatever you want the password to be...")
{
echo "page text if password and username are right
";
}
elseif($_POST["fpassword"]!=="whatever you want the password to be...")
{
echo "page text if username is right but username is wrong
";
}
}
?>

User Avatar

Wiki User

15y ago

What else can I help you with?

Continue Learning about Engineering
Related Questions

How do you pass table values from one page to another using HTML?

You cant you have to use php or javascript.


What tags are used to embed one HTML page inside another HTML page without using frames?

<object type="text/html" data="http://www.example.com" style="width:80%; height:300px; margin:1%;"> embedded html without frames</object>


How do you link one HTML page to another?

Using an achor text like click here, etc. In HTML, it is the tag. For example, you want your site visitors to move from index to contact page:Contact Page - Click Here


What is the different parts of HTML?

A HTML page can be divided into various sections. The head part of the page and the body part are the main one.


Which person discovered HTML?

No one discovered HTML. Follow the link below to the wikipedia page.


What is static HTML pages?

A static page is one that has nothing but straight HTML coding (maybe with CSS, but not necessary) and does not depend on the server to build the page.


How do you post HTML program?

A HTML Program is one used to create a web page. It is used to post on server to make the web page live.


Is there an HTML code that is on one page and has one link that will go to a different page based on the link you clicked on?

yes


What is a method for moving one page or site to another by clicking on particular words or images?

The method is known as hyperlink in HTML. It can move a page or site to other by clicking on particular word or image.


How would you define span in HTML?

Span is one of the tag of HTML. It alters the style of written text in the web page.


Href in HTML?

href is used in HTML to link from one website/webpage to another.


How can one redirect from a HTML page?

When creating an HTML page the person must be verse in Hyper Text coding. Generally the code a href will and then typing the address of the site will create a link.