Web Hosting Talk







View Full Version : Best form processor.


Chagle
04-15-2007, 04:46 AM
Hi there...

I currently have a couple of personal/small website and have been using Kmita for form processing as it's nice and easy.

But I'd like to do a couple of more website for friends etc. but really need something a little less expensive than Kmita as you can only use it on my site. Of course you can buy more licenses but for merely a couple of contact forms on each but seems a bit of an expensive way to go.

Any suggestions?

Kmita is good but you install it on your server/domain and setup is done from there...

Any better/alternative suggestions (please :-) )

jherbison
04-16-2007, 04:58 PM
Are you running PHP on the server?

There is a really simple way to make forms using php. Please do not pay for form submission to email. It is really easy once you know how, and takes less time to set up then Kmita.

Chagle
04-16-2007, 05:08 PM
Hi there.

I guess the server where I'm hosted does have PHP - as the kmita scripts ends in .php :-)

I'm be very pleased to find out your suggestions jherbison

jherbison
04-16-2007, 05:29 PM
Sure!

First thing you need to do is name your page with the extension .php.

For expample a contact page would be contact.php

Then create your form on that page, here is an example.

<form method='post' action='contact.php'>
<input type='text' name='full_name'>
<input type='text' name='email_address'>
<input type='text' name='phone_number'>
<input type='text' name='comments'>
<input type='submit' name='submit' value='Send Contact Information'>
</form>

Now somewhere in the page include this section, and modify the items in red...
<?php

if(isset($submit))
{
$subject="Whatever you want for the subject!\r\n";
$message="$comments\r\n";
$headers .="From: $full_name <$email_address>\r\n";
$headers .="MIME-Version: 1.0\r\n";
$headers .="Content-type: text/html; charset=iso-8859-1\r\n";
$emailto ="Your email address";

mail("$emailto","$subject","$message","$headers");

echo "Your message to the person after they have submitted the form.";
}
?>

This can be modified really easy.

Thanks,
jherbison

Chagle
04-16-2007, 05:34 PM
Actually, thanks looks pretty easy!

Is it possible to redirect to a "thank.htm" page once they have submitted the form?

rmfred
04-16-2007, 07:41 PM
Actually, thanks looks pretty easy!

Is it possible to redirect to a "thank.htm" page once they have submitted the form?

yes... not sure of the exact syntax as I use ASP but something like this should do the trick
header("location: http://yoursite.com/thank.htm/");

safari
04-17-2007, 06:09 PM
Hi ..Yes, please do not pay for form submission, please use aformmail.php just as the previous contributor showed you in their script..you can modify it and aformmail.php has a part that specifies whather you want attachments enabled, what page you want them to go to after and what message you want them to see in their email after submission..