simple form for a complete beginner
I need to add a simple form to my site, one that allows visitors to input their name, email, tel and comments. When they hit submit it should get sent to me. It needs to be secure. It would be nice if it validated the info before submit but this is not absoutly necesary.
I am completely new to this kind of thing and Im finding a lot of examples out there that I just cant follow or I cant get them working. Can anyone direct me a working, secure good example of this kind of thing ?
What is the platform of your web host as this dictates which type of script to use?
Linux hosting or Windows?
its Linux !
anything else you need to know?
There's a really good starter tutorial here that will do what you need.
cool, thanks for that.
can you direct me to one for a windows paltform, as I will probably need to create a form for that environment soon as well...?
As always, Windows makes it a bit harder due to the infrastructure of the server environment but here is a useful article.
I'm not sure if you still need help, but this script is really good. It more or less explains itself, it's what i use on my contact us page of my site.
Originally Posted by <Eddie>
Thanks Eddie, I tested it on the server and it works a treat!
I would however like to extend it so that it updates the page with some text like " your message has been sent" as right now it looks like nothing happens to the end user.
do you know any links to PHP resources/tutorials that I can add in to achieve this kind of thing?
Also, links to tutorial / code on validating the info sent?
I'm not sure if that script allows you to do this, but i put a redirect in for mine, so that when the person presses submit, and the form sens to my email, it redirects to a new page. So i just made a new page, with the text "thanks, your message has been sent..........". Its a really simple solution, but works perfectly.
Originally Posted by pixeler
that sounds perfect - but how did you do that? ( sorry if that is an obvious question but I am still very new to all this kind of thing)
In terms of the link I provided earlier, if you wish to redirect to a thank you page then the following piece of code needs to be changed.
woops....someone get there before me
Last edited by mark200; 04-13-2006 at 05:37 AM.
Reason: Too Late
perfect ! thanks !
do you know of any tutorials that woudl guide me towards validating the info?
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)