PDA

View Full Version : ASP to add form data to MySQL db


waako
09-08-2007, 02:55 PM
Hello all,

I setup a PHP script that enables people to signup as beta testers while answering a number of questions about interests etc...
Now the website is being moved to a server that only does ASP.

the current php process files uses the following:
$name = $_POST['name'];
$email = $_POST['email'];
$inspiration1 = $_POST['inspiration1'];
$inspiration2 = $_POST['inspiration2'];
$inspiration3 = $_POST['inspiration3'];
$question1 = $_POST['question1'];
$question2 = $_POST['question2'];
$question3 = $_POST['question3'];

$sql="INSERT INTO betasignup (name, email, inspiration1, inspiration2, inspiration3, question1, question2, question3)
VALUES
('$_POST[name]','$_POST[email]','$_POST[inspiration1]','$_POST[inspiration2]','$_POST[inspiration3]','$_POST[question1]','$_POST[question2]','$_POST[question3]')";
how can I do this using asp?

Would be amazingly grateful for any answers, as I need to get this done before leaving for hols tomorrow morning.... :gagged:
thanks

sladmin
09-08-2007, 03:54 PM
Hi Waako,

If you add me on MSN I'd gladly help you out, I work in ASP VB and MySQL. Give me a shout and I'll create something for you :thumbup1:


EDIT: Wow my 500th post!! :D

waako
09-08-2007, 04:21 PM
I've found a php to asp converter, Don't know if the end product is any good, we shall see...

thank you for reading anyway if you are!