Log in

View Full Version : Registration script



bootersbooters
02-12-2013, 03:50 PM
Hello friends :) i need a help.

I am making a school event website. which requires a page which can help the participants register themselves, with information like name, email, contact number, event etc. The entered data should be received in an email. In other words Just like a form collecting few data from the participants.

Thanks in advance.

Beverleyh
02-12-2013, 05:43 PM
So what have you tried already?

Also - have you thought about what you'll do with the data once you've collected it? Event registration is a bit more complex than accepting info via email - typically you'd store the data in a database for more convenient storage and easier manipulation.

You might want to review some of the open source registration or form management services/scripts available via Google first to get a better feeling for what you need.

If you want to totally build and customise something from the ground up, something like Form Tools is an excellent solution: http://www.formtools.org/

bootersbooters
02-13-2013, 08:19 AM
Hello Beverleyh, thanks for replying.

I have tried using many free form scripts which email a contact form to my email using a free host(0fees.net). but neither of them worked out
if such a forum would work out, i would have modified the fields with the one required.
A working contact form (non third party) would be appreciated.

Beverleyh
02-13-2013, 01:09 PM
The problem is most likely with your web host since the majority don't enable a domain specific email or SMTP for free account - that means they don't allow email sending via SMTP/mail() in php. This is typically done to deter spammers who will seek out free/cheap web hosts to do their bad deeds - if they have to pay for the SMTP service, they don't bother with that host.

I'd check with your web host first to see if you're setup with those features (you'll probably need to upgrade or pay for the extras as a bolt-on) and at the same time ask them to provide an example of a send mail script that works with their service.

For example - here is email sending code that works;

<?php
$from = "From: My Name <me@mywebsite.com>";
$to = "someone_else@theirwebsite.com";
$subject = "Hello";
$body = "TEST";

if(mail($to,$subject,$body,$from)) {
echo "Email sent OK";
} else {
echo "Email not sent - sending failed";
}
?> The 'from' header should be an existing email account that is tied to your domain / created in your web hosting account.

The alternative is a to use a 3rd party event registration service hosted elsewhere.

ajfmrf
02-14-2013, 12:07 AM
I always reccomend this script.

http://devingredients.com/2011/03/building-a-php-contact-form-with-captcha-from-scratch/

It is a safe secure script and can easily be expanded.I work extensively with the creator to get my feedback form worked out here:
http://www.web-user.info/feedback/form.php

The basic script is simple and easy to set up and is explained quite easily.

If you want or need help with it post here( a new thread would be good) and I will help.