PERL get variable from form, into mySQL

D

dparham

Guest
#1
how do i capture form input, and put into a mySQL db AS A variable?? i can input literals directly into, so the connect, etc is working. just the var part shows up blank.

my $stmt1 = "INSERT INTO registration1a (social, location, name) VALUES ('ggg.gg.gggg', 'Charlotte', '$realname')";
$rc = $dbh->do($stmt1);

see the '$varname'? how to get input from the form??

in advance, thank you for your time and expertise:happy:
 

Khayman

I'm sorry Hal...
Political User
#2
probably got it by now, but what the hell :)

something like (i think)

varible =$FORM{'formitemname'}
 

Members online

No members online now.

Latest posts

Latest profile posts

Perris Calderon wrote on Electronic Punk's profile.
Ep, glad to see you come back and tidy up...did want to ask a one day favor, I want to enhance my resume , was hoping you could make me administrator for a day, if so, take me right off since I won't be here to do anything, and don't know the slightest about the board, but it would be nice putting "served administrator osnn", if can do, THANKS

Been running around Quora lately, luv it there https://tinyurl.com/ycpxl
Electronic Punk wrote on Perris Calderon's profile.
All good still mate?
Hello, is there anybody in there? Just nod if you can hear me ...
Xie
What a long strange trip it's been. =)

Forum statistics

Threads
61,971
Messages
673,299
Members
89,016
Latest member
Poseeut