Forum Moderators: coopster
I see so many PHP forms but they seem way to advanced for my simple needs. can someone point me in the right direction.
Many Thanks for any help
on the first page, create the HTML form:
[form.php]
<form action="process.php" method="POST">
<input type="text" name="phone" value="">
<input type="text" name="email" value="">
.. add your other fields here
</form>
Then on the next page, retrieve the form values from the $_POST array.
[process.php]
<?php
print("<BR>Phone number: ".$_POST['phone']);
print("<BR>Email Address: ".$_POST['email']);
?>
Some folks (myself included) like to put the processing script in the same file as the form. It complicates things only slightly, but for simplicity the method above does the job just fine.
It seems strange to me that people will fill out a web form and then have to print it out and send it by postal mail. What's the point of having it on the web, if it's not making use of electronic communication? Personally, I'd be annoyed, because I don't usually keep a stash of postage stamps on hand.
Be that as it may, that's how you submit a form and see the results formatted nicely on the next page.
It seems strange to me that people will fill out a web form and then have to print it out and send it by postal mail. What's the point of having it on the web, if it's not making use of electronic communication?
If that's the ONLY way to purchase then it's liable to lose potential sales.
However, if your are adding it as ANOTHER way to purchase, it's likely to increase sales. I added a printable order form on a site recently and was surprised when two orders came in within days.
Birdman