The stupid question is the question not asked | |
PerlMonks |
Re^3: How to bind html page with PERL script to accept user input to Mysql database (eg. Phonebook)by poj (Abbot) |
on Jul 04, 2013 at 08:50 UTC ( [id://1042387]=note: print w/replies, xml ) | Need Help?? |
Adjust your form tag to location of cgi script like this <form method="post" action="/cgi-bin/subfolder/sqlconfig.cgi">. Put the html page in the htdocs folder. In your cgi script I suggest to keep the database/sql processing separate and put all the cgi at the end of the script like this
It would be advisable to add use strict but you will need declare all your variables with my. I can't see any reason to our Also, whilst testing you might find it useful to add use CGI::Carp 'fatalsToBrowser' but remove it when the script is working. poj
In Section
Seekers of Perl Wisdom
|
|