English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I am trying to call an alert which works fine, but I want it to show an alert if an age is higher than 30 or lower than 30, and show the age entered in the form, can this be done?

I have the follwing code i have done:
/calling yourdetails function to show details
if($details->Yourdetails($_POST['age'])){
$msg='blah, blah, blah.';
}
else
{
$msg=''blah, blah, blah.';
}
?>
Your age










javascript:
function alert1()
{
if( confirm("Continue?"))
{
document.object return= true;
}else{
document.object_return= false;
}
}

2007-11-29 01:08:05 · 1 answers · asked by Anonymous in Computers & Internet Programming & Design

1 answers

In your php have your if statement to call the alert code
echo "";

2007-11-29 01:40:48 · answer #1 · answered by AnalProgrammer 7 · 0 0

fedest.com, questions and answers