ive already tried getting help from a different website i usually go to, but there are literally four people on the programming forum there so i was hoping you guys could help me out a little more.
i need help getting php to work. i just spent hours trying to download apache, mysql, and php, then finally i searched found out about a thing calld wamp witch apparently has all three inside of it. i downloaded that but my php still isnt working!
ok so i am pretty sure that i have apache, php, and mysql installed. i have an html document with this in it:
(this isnt the entire source, just the part with the form)
<html>
<body>
<form action="welcome.php" method="post">
Desired Username: <input type="text" name="username" /><br />
<br />
Password: <input type="password" name="password" /><br />
<br />
Real name? <input type="text" name="realname" /><br />
<input type="submit" value="Submit! ( :" />
</body>
</html>
ok, and here is the welcome.php file.
(also this isnt the whole thing, just some of it, but it will do)
<html>
<body>
Welcome, <?php echo $POST["username"]; ?>.<br />
you told us that your name is <?php echo $POST["realname"]; ?>, it will be posted in your profile.<br>
</body>
</html>
when i open the first file in mozilla firefox, i type in the username box, then in password box, then in the real name box, then i click the submit button. it goes to welcome.php just fine, but then it says this:
Welcome, .
you told us that your name is , it will be posted in your profile.
see none of the php worked!
but i dont even think that my html sytax is the problem, i opened up a blank php document and wrote:
<?php echo "PHP is allowed"; ?>
very simple to make sure it would work, but it didnt.
PS this is for a site i am making that isnt on the internet yet, could that be my problem?
also if anybody else owns the program called WAMP and they have any idea of why it might not be working, please help.
thanks in advance to anybody that helps.