Kyle Barry
Regular
Hi, I know a lot of cubers have programming interests, and I'm trying to set up a few websites, but have run into unexpected problems.
I have basically no experience, and am probably doing something very obviously wrong, so if you can help me out, that would be great.
I'm tying to set up an HTML form to display a text box, where people can type their emails in, hit the Submit button, and it be retrieved and posted in my .php file. I've looked up ways to do this, but for whatever reason, it's not working. Here's my code so far:
This is the html document.
My .php document, entitled emails.php is here:
Does anyone see any obvious problems, thanks in advance.
I have basically no experience, and am probably doing something very obviously wrong, so if you can help me out, that would be great.
I'm tying to set up an HTML form to display a text box, where people can type their emails in, hit the Submit button, and it be retrieved and posted in my .php file. I've looked up ways to do this, but for whatever reason, it's not working. Here's my code so far:
This is the html document.
Code:
<form action="emails.php" method="post">
Email:
<input type="text" name="email" />
<input type="submit" value="Submit" />
</form>
My .php document, entitled emails.php is here:
Code:
<html>
<body>
<?php
$email = $_POST['email'];
echo "Email" $email;
?>
</body>
</html>
Does anyone see any obvious problems, thanks in advance.