Click to See Complete Forum and Search --> : Forms - Idiot's Guide Needed
Villager
08-18-2009, 09:18 AM
Hello all. This is my first post here, I'm getting desperate. I learned HTML and CSS quickly enough, and have since made a website I'm pretty happy with. However I really want to add various forms to make the site interactive, but I cannot figure it out. I've read a dozen tutorials and they all baffle me: the HTML part is easy enough - I don't understand how to receive the information entered when a user presses 'submit'.
I don't want to just use 'mailto' because I know a lot of people don't have outlook configured.
I don't want to spend weeks learning perl/php/sql or whatever is needed!
PLEASE help - in layman's terms, how do I set this up?
donatello
08-18-2009, 09:50 AM
You need just a bit of php, at least that's the way I do it.
You will need 2 pages.
Page 1: Name it: test.html
<html>
<head></head>
<body>
<form name="form1" method="post" action="result.php" target="_blank">
<input name="yourname" type="text" title="Enter your name" />
<input type="submit" name="Submit" value="Submit">
</body>
</html>
This will send data to a page you should name: result.php
Page 2: Name it result.php
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
</head>
<body>
Your name is: <?php echo $_POST['yourname']; ?>
</body>
</html>
That's the simplest way to explain it.
donatello
08-18-2009, 09:55 AM
Read your post a second time and it sounds to me like you want to create a mail form? That is not a good idea for a neophyte as your PHP mailserver will immediately be discovered by evil spambots and become overloaded sending Viagra ads to everyone in America.
Better to find a form-mail package and install it.
Tectite has one that I have used and seems pretty secure.
It is actually simple to make a form that will send mail from PHP. It is also simple for someone to hijack it.
To make a secure form mail capability is quite complicated... at least for me, and it sounds like it might be for you as well. ;)
Good luck.
http://www.tectite.com/ <-----------Check it out, I use it and it's pretty good.
Villager
08-19-2009, 03:37 PM
Read your post a second time and it sounds to me like you want to create a mail form? That is not a good idea for a neophyte as your PHP mailserver will immediately be discovered by evil spambots and become overloaded sending Viagra ads to everyone in America.
Better to find a form-mail package and install it.
Tectite has one that I have used and seems pretty secure.
It is actually simple to make a form that will send mail from PHP. It is also simple for someone to hijack it.
To make a secure form mail capability is quite complicated... at least for me, and it sounds like it might be for you as well. ;)
Good luck.
http://www.tectite.com/ <-----------Check it out, I use it and it's pretty good.
Thank you! I have now incorporated a number of tectite forms into my site, and they work perfectly.
www.newmuslimdhikr.co.uk