skubeedoo Posted June 17, 2009 Share Posted June 17, 2009 I'm a total nube and can really use some help. I've made a website in dreamweaver with a simple form that visitors can request a demo. they enter thier name and email and push send. The visitor will recieve an email with a link to the demo. What I'd like to have happen is the visitor receives the email and their informaiton (name and email) is submitted to a database for a record. I looked at formmail, but I didn't see how to send data to the db. Any help would be greatly appreciated. Link to comment https://forums.phpfreaks.com/topic/162592-this-should-be-easy/ Share on other sites More sharing options...
MatthewJ Posted June 17, 2009 Share Posted June 17, 2009 You would use something like formmail, then after the mail is sent (and before any redirects) you would add code to insert to the database. Link to comment https://forums.phpfreaks.com/topic/162592-this-should-be-easy/#findComment-858135 Share on other sites More sharing options...
skubeedoo Posted June 17, 2009 Author Share Posted June 17, 2009 I found this script for processform...would this be the way to go??? http://www.mindpalette.com/scripts/index.php#PFAnchor Link to comment https://forums.phpfreaks.com/topic/162592-this-should-be-easy/#findComment-858152 Share on other sites More sharing options...
UQ13A Posted June 17, 2009 Share Posted June 17, 2009 mysql_query("INSERT INTO `demos_sent`(`to`, `time`) values($_POST['email'], NOW())"); something like this anyway Link to comment https://forums.phpfreaks.com/topic/162592-this-should-be-easy/#findComment-858163 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.