there are some great tools you can get to make php websites. such as zend studio or dreamweaver, but those programs are expensive. if you can't afford these software applications your best bet is to programm your pages with a simple text editor like notepad. however, creating php files with notepad will require you to know more about html and php and will have to write more.
but for the purpose of this tutorial, lets say we want to create a page where you ask your visitor's name and then display their name on the browser. this is how you do it.
first, step is to make sure you have php on your website. if you don't have php, you can go to Webune.com and sign up for php hosting. they have very good service.
now that you have php, i will do this tutorial using notepad. so open notepad at this time.
now copy and past the following code into an empty notepad document:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Simple php tutorial by wallpaperama</title>
</head>
<body>
<?php
if(isset($_REQUEST['Submit']))
{
echo "<h2>Hello ".$_REQUEST['name']."!</h2><hr>Don't forget to tell your friends about Wallpaperama.com!";
}
else
{
?>
<form name="form1" method="post" action="">
Hi, what is your name
<input type="text" name="name">
<input type="submit" name="Submit" value="Submit">
</form>
<?php
}
?>
</body>
</html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Simple php tutorial by wallpaperama</title>
</head>
<body>
<?php
if(isset($_REQUEST['Submit']))
{
echo "<h2>Hello ".$_REQUEST['name']."!</h2><hr>Don't forget to tell your friends about Wallpaperama.com!";
}
else
{
?>
<form name="form1" method="post" action="">
Hi, what is your name
<input type="text" name="name">
<input type="submit" name="Submit" value="Submit">
</form>
<?php
}
?>
</body>
</html>
now save this file as simple.php and upload to your websit, then open it with your browser and watch it in action.

