Hi, Can anyone tell me in simple steps what i need to do to get forms from a website into a database. I have set up so that forms are sent to my email and can be recieved, but i want to collect the names and email addresses to go automatically into a database. is this possible? Many thanks in advance for any help given Andrew
Yes it's possible. If you have an email script already, it'll be easy. Just look for a tutorial on MySQL or whatever platform you have access to. Paste yuor current form handler here if you fancy your chances; maybe one of us is bored enough to help out a first time poster
The form handler is with uk2.net and its called 'formmail' Hope that elightens. Thanks for your help and for anyone else about to help me out in the future
if possible attache your php file here and i will code it, or maybe if you need i will send form like that i already did one myself.
In the part of the script where you send the mail you have to add the following code: mysql_connect('localhost','username','password'); mysql_select_db('dbname'); mysql_query("INSERT INTO tablename(emailaddress, name)"."VALUES('$email','$name')"); Code (markup): You just have change the information according to your host settings and database settings, and of course the variable names.
OOPS sorry I think the post above addresses this!... Thanks for everyones help, i asked uk2 what they could do and they replied with "We don't have a stock script for inserting these values into a database, but there are many free third-party scripts available from other sources to do this for you. You already have the CGI service required to run these." Does anyone know of a third party script that i can use to add these email addresses into a data base. Many thanks in advance Andrew