Still working on this script. :) I'm trying to add a phone number validator in now.
I know I need to add this:
if ( $phone =~ / ^ \( \d{3} \) \d{3} - \d{4} $ /x )
But I'm not sure where.
Here's the code:
#!/usr/bin/perl -w
use CGI ':standard';
use DBI;
$dbh =...
Can't figure out how to validate a phone number. Such as: Number has to be in (123) 456-7890 format.
Have this code to validate data is entered:
<script type = "text/javascript">
function validate()
{
if (theform.name.value=="")
{
alert('Your name is required!')...
I have a form in an HTML doc. I send it to my Perl script. The perl script then sends it to my mySql database. I then want to redirect the user to another HTML page. Yet, I can't seem to get it to work. Any ideas?
Thank you for your help.
if ($rows > 0)
{print...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.