Skip to main content
Stack Overflow
  1. About
  2. For Teams

Return to Question

Post Timeline

replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link
URL Rewriter Bot
URL Rewriter Bot
insert duplicate link
Source Link
Post Closed as "exact duplicate" by T.J. Crowder, bfavaretto, Matt, carlosfigueira, Graviton
added 114 characters in body
Source Link
Tariqulazam
  • 4.6k
  • 1
  • 38
  • 44
?>
 <script type="text/javascript">
 function ValidateEmail(inputText) 
{ 
var mailformat = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/; 
if(inputText.value.match(mailformat)) 
{ 
document.forms.emailform(); 
return true; 
} 
else 
{ 
alert("You have entered an invalid email address!"); 
document.forms.emailform(); 
return false; 
} 
} 
</script>
<?php
 $addemail .= '
 
 <form method="post" action="cart2.php" name="emailform" onsubmit="return validateEmail">
 ';
 $addemail .= '
 E-mail Address: <input type="text" name="email" value="'.$row6['email'].'" size="19" /><input type="hidden" name="cartid" value="'.$cart.'" />';
 if ( $emailerror != '' )
 {
 $addemail .= '<img src="images/email_error.png" width="16" height="16" hspace="4" alt="E-mail Error" />';
 }
 $addemail .= '
 <input type="image" name="Add E-mail Address" alt="Add E-mail Address" src="images/addemail.gif" style="vertical-align:middle" />
 </form>
 ';
 if ( $row6['email'] == '' )
 {
 $emailpresent = 0;
 }
 else
 {
 $emailpresent = 1;
 }
}
 $addemail .= '
 </td>
 </tr>
 ';
}
?>
?>
 <script type="text/javascript">
 function ValidateEmail(inputText) 
{ 
var mailformat = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/; 
if(inputText.value.match(mailformat)) 
{ 
document.forms.emailform(); 
return true; 
} 
else 
{ 
alert("You have entered an invalid email address!"); 
document.forms.emailform(); 
return false; 
} 
} 
</script>
<?php
 $addemail .= '
 
 <form method="post" action="cart2.php" name="emailform" onsubmit="return validateEmail">
 ';
 $addemail .= '
 E-mail Address: <input type="text" name="email" value="'.$row6['email'].'" size="19" /><input type="hidden" name="cartid" value="'.$cart.'" />';
 if ( $emailerror != '' )
 {
 $addemail .= '<img src="images/email_error.png" width="16" height="16" hspace="4" alt="E-mail Error" />';
 }
 $addemail .= '
 <input type="image" name="Add E-mail Address" alt="Add E-mail Address" src="images/addemail.gif" style="vertical-align:middle" />
 </form>
 ';
 if ( $row6['email'] == '' )
 {
 $emailpresent = 0;
 }
 else
 {
 $emailpresent = 1;
 }
}
 $addemail .= '
 </td>
 </tr>
 ';
}
<script type="text/javascript">
 function ValidateEmail(inputText) 
{ 
var mailformat = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/; 
if(inputText.value.match(mailformat)) 
{ 
document.forms.emailform(); 
return true; 
} 
else 
{ 
alert("You have entered an invalid email address!"); 
document.forms.emailform(); 
return false; 
} 
} 
<?php
 $addemail .= '
 
 <form method="post" action="cart2.php" name="emailform" onsubmit="return validateEmail">
 ';
 $addemail .= '
 E-mail Address: <input type="text" name="email" value="'.$row6['email'].'" size="19" /><input type="hidden" name="cartid" value="'.$cart.'" />';
 if ( $emailerror != '' )
 {
 $addemail .= '<img src="images/email_error.png" width="16" height="16" hspace="4" alt="E-mail Error" />';
 }
 $addemail .= '
 <input type="image" name="Add E-mail Address" alt="Add E-mail Address" src="images/addemail.gif" style="vertical-align:middle" />
 </form>
 ';
 if ( $row6['email'] == '' )
 {
 $emailpresent = 0;
 }
 else
 {
 $emailpresent = 1;
 }
}
 $addemail .= '
 </td>
 </tr>
 ';
}
?>
Source Link
Ted Beeney
  • 69
  • 1
  • 1
  • 2
Loading
lang-js

AltStyle によって変換されたページ (->オリジナル) /