PDA

View Full Version : Form Required Fields..


bertman
10-12-2010, 10:47 PM
Hi,
I made a patient form with DW.
From behaviours I have choosen the fields wich I want customers not to leave empty..
But after this when I click to forms pages this popup window comes..

http://img811.imageshack.us/img811/3204/formqx.jpg (http://img811.imageshack.us/i/formqx.jpg/)

its like I already clicked on "send" button...
I want this come only if someone clicks on "send" not after entering the form page...
any solutions?

edbr
10-13-2010, 12:57 AM
not sure i understand . do you use onsubmit?

bertman
10-13-2010, 07:22 AM
If its something with java dont think I used it...
I just created a form with DW and choosen some fields as required from behavious > validate ..

Corrosive
10-13-2010, 07:23 AM
Can we get a link please?

bertman
10-13-2010, 07:35 AM
I removed it after the problem..
this is how the code looks like right now:

<form action="/sendresults.php" method="post" name="contact form" target="_self" id="contact form">
<table width="1013" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="358" height="700" rowspan="18" valign="top" bgcolor="#FFFFFF"><script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','width','300','heigh t','700','align','top','src','swf/uzelint_m_shorter','quality','high','pluginspage', 'http://www.macromedia.com/go/getflashplayer','bgcolor','#FFFFFF','movie','swf/uzelint_m_shorter' ); //end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="300" height="700" align="top">
<param name="movie" value="swf/uzelint_m_shorter.swf" />
<param name="quality" value="high" /><param name="BGCOLOR" value="#FFFFFF" />
<embed src="swf/uzelint_m_shorter.swf" width="300" height="700" align="top" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" bgcolor="#FFFFFF"></embed>
</object></noscript></td>
<td height="35" colspan="3" bgcolor="#FFFFFF"><label><span class="style3">UZEL INTERNATIONAL PATIENT PROFILE </span></label></td>
<td width="126" bgcolor="#FFFFFF">&nbsp;</td>
</tr>
<tr>
<td width="197" height="30" bgcolor="#FFFFFF"><span class="style5">Patient's Name</span></td>
<td height="30" colspan="2" bgcolor="#FFFFFF"><label>
<input name="Patients Name" type="text" id="Patients Name" />
</label></td>
<td bgcolor="#FFFFFF">&nbsp;</td>
</tr>

<tr>
<td height="30" bgcolor="#FFFFFF" class="style5">Date of Birth (MM/DD/YYYY)</td>
<td height="30" colspan="2" bgcolor="#FFFFFF"><label>
<input name="DateOfBirth" type="text" id="DateOfBirth" />
</label></td>
<td bgcolor="#FFFFFF">&nbsp;</td>
</tr>
<tr>
<td height="30" bgcolor="#FFFFFF" class="style5">Mother's Name</td>
<td height="30" colspan="2" bgcolor="#FFFFFF"><label>
<input name="MothersName" type="text" id="MothersName" />
</label></td>
<td bgcolor="#FFFFFF">&nbsp;</td>
</tr>
<tr>
<td height="30" bgcolor="#FFFFFF" class="style5">Father's Name</td>
<td height="30" colspan="2" bgcolor="#FFFFFF"><label>
<input name="FathersName" type="text" id="FathersName" />
</label></td>
<td bgcolor="#FFFFFF">&nbsp;</td>
</tr>
<tr>
<td height="30" bgcolor="#FFFFFF" class="style5">Emergency Contact</td>
<td height="30" colspan="2" bgcolor="#FFFFFF"><label>
<input name="EmergencyContact" type="text" id="EmergencyContact" />
</label></td>
<td bgcolor="#FFFFFF">&nbsp;</td>
</tr>
<tr>
<td height="40" bgcolor="#FFFFFF" class="style5">Address</td>
<td height="40" colspan="2" bgcolor="#FFFFFF"><label>
<textarea name="adress" id="adress"></textarea>
</label></td>
<td bgcolor="#FFFFFF">&nbsp;</td>
</tr>
<tr>
<td height="30" bgcolor="#FFFFFF" class="style5">Tel #</td>
<td height="30" colspan="2" bgcolor="#FFFFFF"><label>
<input name="Tel" type="text" id="Tel" />
</label></td>
<td bgcolor="#FFFFFF">&nbsp;</td>
</tr>
<tr>
<td height="30" bgcolor="#FFFFFF" class="style5">Cell #</td>
<td height="30" colspan="2" bgcolor="#FFFFFF"><label>
<input name="Cell" type="text" id="Cell" />
</label></td>
<td bgcolor="#FFFFFF">&nbsp;</td>
</tr>
<tr>
<td height="30" bgcolor="#FFFFFF" class="style5">Fax #</td>
<td height="30" colspan="2" bgcolor="#FFFFFF"><label>
<input name="Fax" type="text" id="Fax" />
</label></td>
<td bgcolor="#FFFFFF">&nbsp;</td>
</tr>
<tr>
<td height="30" bgcolor="#FFFFFF" class="style5">E-Mail</td>
<td height="30" colspan="2" bgcolor="#FFFFFF"><label>
<input name="Email" type="text" id="Email" />
</label></td>
<td bgcolor="#FFFFFF">&nbsp;</td>
</tr>
<tr>
<td height="30" bgcolor="#FFFFFF" class="style5">Diagnosis</td>
<td height="30" colspan="2" bgcolor="#FFFFFF"><label>
<input name="Diagnosis" type="text" id="Diagnosis" />
</label></td>
<td bgcolor="#FFFFFF">&nbsp;</td>
</tr>

<tr>
<td height="40" bgcolor="#FFFFFF" class="style5">Current Physician + Hospital Name</td>
<td height="40" colspan="2" bgcolor="#FFFFFF"><label>
<textarea name="PhysicianHospital" id="PhysicianHospital"></textarea>
</label></td>
<td bgcolor="#FFFFFF">&nbsp;</td>
</tr>
<tr>
<td height="40" bgcolor="#FFFFFF" class="style5">Physician Contact Information</td>
<td height="40" colspan="2" bgcolor="#FFFFFF"><label>
<textarea name="PhysicianContact" id="PhysicianContact"></textarea>
</label></td>
<td bgcolor="#FFFFFF">&nbsp;</td>
</tr>
<tr>
<td height="40" bgcolor="#FFFFFF" class="style5">Notes</td>
<td height="40" colspan="2" bgcolor="#FFFFFF"><label>
<textarea name="Notes" id="Notes"></textarea>
</label></td>
<td bgcolor="#FFFFFF">&nbsp;</td>
</tr>
<tr>
<td height="30" bgcolor="#FFFFFF">&nbsp;</td>
<td width="114" bgcolor="#FFFFFF"><label>
<input type="submit" name="Submit" value="Submit" />
</label></td>
<td width="218" bgcolor="#FFFFFF"><label>
<input name="Reset" type="reset" id="Reset" value="Reset" />
</label></td>
<td bgcolor="#FFFFFF">&nbsp;</td>
</tr>
<tr>
<td height="30" bgcolor="#FFFFFF">&nbsp;</td>
<td colspan="2" bgcolor="#FFFFFF">&nbsp;</td>
<td bgcolor="#FFFFFF">&nbsp;</td>
</tr>
<tr>
<td height="35" bgcolor="#FFFFFF">&nbsp;</td>
<td colspan="2" bgcolor="#FFFFFF">&nbsp;</td>
<td bgcolor="#FFFFFF">&nbsp;</td>
</tr>
<tr>
<td height="38" colspan="5" bgcolor="#E9E9CE"><script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','width','1013','heig ht','38','src','swf/uzelint_alt','quality','high','pluginspage','http://www.macromedia.com/go/getflashplayer','bgcolor','#E9E9CE','movie','swf/uzelint_alt' ); //end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="1013" height="38">
<param name="movie" value="swf/uzelint_alt.swf" />
<param name="quality" value="high" /><param name="BGCOLOR" value="#E9E9CE" />
<embed src="swf/uzelint_alt.swf" width="1013" height="38" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" bgcolor="#E9E9CE"></embed>
</object></noscript></td>
</tr>
</table>
</form>

Everyone can send an empty form at the moment..

bertman
10-13-2010, 07:52 AM
I uploaded it to my test page..

http://www.bilgizone.com/uzelint/index.html

If you click on "patient form" button you can see the problem...

edbr
10-13-2010, 08:05 AM
i dont see any validation in the form and your link is not active

bertman
10-13-2010, 08:12 AM
Here is after I add validation again...
and the link should be working maybe its because I just uploaded it...


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script type="text/javascript" language="JavaScript1.2" src="stmenu.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>UIC</title>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-right: 0px;
margin-top: 0px;
margin-bottom: 0px;
background-repeat: repeat-x;
background-image: url(images/mainBG.png);
background-color: #E9E9CE;
}
.style3 { font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 14px;
color: #83A05D;
}
.style5 {font-family: Arial, Helvetica, sans-serif; font-size: 11px; color: #666666; }
-->
</style>
<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
<script type="text/JavaScript">
<!--
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_validateForm() { //v4.0
var i,p,q,nm,test,num,min,max,errors='',args=MM_valida teForm.arguments;
for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
if (val) { nm=val.name; if ((val=val.value)!="") {
if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';
} else if (test!='R') { num = parseFloat(val);
if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
min=test.substring(8,p); max=test.substring(p+1);
if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
} } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; }
} if (errors) alert('The following error(s) occurred:\n'+errors);
document.MM_returnValue = (errors == '');
}
//-->
</script>
</head>
<body onload="MM_validateForm('Patients Name','','R','DateOfBirth','','R','EmergencyContac t','','R');return document.MM_returnValue">
<table width="1013" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td width="1017" height="50" bgcolor="#83A05D">&nbsp;</td>
</tr>
<tr>
<td bgcolor="#83A05D"><script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','width','1013','heig ht','227','src','swf/uzelint','quality','high','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','swf/uzelint' ); //end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="1013" height="227">
<param name="movie" value="swf/uzelint.swf" />
<param name="quality" value="high" />
<embed src="swf/uzelint.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="1013" height="227"></embed>
</object></noscript></td>
</tr>
<tr>
<td><script type="text/javascript" language="JavaScript1.2" src="menuuzel.js"></script></td>
</tr>
<tr>
<td></td>
</tr>

<tr>
<td height="630"><form action="/sendresults.php" method="post" name="contact form" target="_self" id="contact form">
<table width="1013" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="358" height="700" rowspan="18" valign="top" bgcolor="#FFFFFF"><script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','width','300','heigh t','700','align','top','src','swf/uzelint_m_shorter','quality','high','pluginspage', 'http://www.macromedia.com/go/getflashplayer','bgcolor','#FFFFFF','movie','swf/uzelint_m_shorter' ); //end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="300" height="700" align="top">
<param name="movie" value="swf/uzelint_m_shorter.swf" />
<param name="quality" value="high" /><param name="BGCOLOR" value="#FFFFFF" />
<embed src="swf/uzelint_m_shorter.swf" width="300" height="700" align="top" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" bgcolor="#FFFFFF"></embed>
</object></noscript></td>
<td height="35" colspan="3" bgcolor="#FFFFFF"><label><span class="style3">UZEL INTERNATIONAL PATIENT PROFILE </span></label></td>
<td width="126" bgcolor="#FFFFFF">&nbsp;</td>
</tr>
<tr>
<td width="197" height="30" bgcolor="#FFFFFF"><span class="style5">Patient's Name</span></td>
<td height="30" colspan="2" bgcolor="#FFFFFF"><label>
<input name="Patients Name" type="text" id="Patients Name" />
</label></td>
<td bgcolor="#FFFFFF">&nbsp;</td>
</tr>

<tr>
<td height="30" bgcolor="#FFFFFF" class="style5">Date of Birth (MM/DD/YYYY)</td>
<td height="30" colspan="2" bgcolor="#FFFFFF"><label>
<input name="DateOfBirth" type="text" id="DateOfBirth" />
</label></td>
<td bgcolor="#FFFFFF">&nbsp;</td>
</tr>
<tr>
<td height="30" bgcolor="#FFFFFF" class="style5">Mother's Name</td>
<td height="30" colspan="2" bgcolor="#FFFFFF"><label>
<input name="MothersName" type="text" id="MothersName" />
</label></td>
<td bgcolor="#FFFFFF">&nbsp;</td>
</tr>
<tr>
<td height="30" bgcolor="#FFFFFF" class="style5">Father's Name</td>
<td height="30" colspan="2" bgcolor="#FFFFFF"><label>
<input name="FathersName" type="text" id="FathersName" />
</label></td>
<td bgcolor="#FFFFFF">&nbsp;</td>
</tr>
<tr>
<td height="30" bgcolor="#FFFFFF" class="style5">Emergency Contact</td>
<td height="30" colspan="2" bgcolor="#FFFFFF"><label>
<input name="EmergencyContact" type="text" id="EmergencyContact" />
</label></td>
<td bgcolor="#FFFFFF">&nbsp;</td>
</tr>
<tr>
<td height="40" bgcolor="#FFFFFF" class="style5">Address</td>
<td height="40" colspan="2" bgcolor="#FFFFFF"><label>
<textarea name="adress" id="adress"></textarea>
</label></td>
<td bgcolor="#FFFFFF">&nbsp;</td>
</tr>
<tr>
<td height="30" bgcolor="#FFFFFF" class="style5">Tel #</td>
<td height="30" colspan="2" bgcolor="#FFFFFF"><label>
<input name="Tel" type="text" id="Tel" />
</label></td>
<td bgcolor="#FFFFFF">&nbsp;</td>
</tr>
<tr>
<td height="30" bgcolor="#FFFFFF" class="style5">Cell #</td>
<td height="30" colspan="2" bgcolor="#FFFFFF"><label>
<input name="Cell" type="text" id="Cell" />
</label></td>
<td bgcolor="#FFFFFF">&nbsp;</td>
</tr>
<tr>
<td height="30" bgcolor="#FFFFFF" class="style5">Fax #</td>
<td height="30" colspan="2" bgcolor="#FFFFFF"><label>
<input name="Fax" type="text" id="Fax" />
</label></td>
<td bgcolor="#FFFFFF">&nbsp;</td>
</tr>
<tr>
<td height="30" bgcolor="#FFFFFF" class="style5">E-Mail</td>
<td height="30" colspan="2" bgcolor="#FFFFFF"><label>
<input name="Email" type="text" id="Email" />
</label></td>
<td bgcolor="#FFFFFF">&nbsp;</td>
</tr>
<tr>
<td height="30" bgcolor="#FFFFFF" class="style5">Diagnosis</td>
<td height="30" colspan="2" bgcolor="#FFFFFF"><label>
<input name="Diagnosis" type="text" id="Diagnosis" />
</label></td>
<td bgcolor="#FFFFFF">&nbsp;</td>
</tr>

<tr>
<td height="40" bgcolor="#FFFFFF" class="style5">Current Physician + Hospital Name</td>
<td height="40" colspan="2" bgcolor="#FFFFFF"><label>
<textarea name="PhysicianHospital" id="PhysicianHospital"></textarea>
</label></td>
<td bgcolor="#FFFFFF">&nbsp;</td>
</tr>
<tr>
<td height="40" bgcolor="#FFFFFF" class="style5">Physician Contact Information</td>
<td height="40" colspan="2" bgcolor="#FFFFFF"><label>
<textarea name="PhysicianContact" id="PhysicianContact"></textarea>
</label></td>
<td bgcolor="#FFFFFF">&nbsp;</td>
</tr>
<tr>
<td height="40" bgcolor="#FFFFFF" class="style5">Notes</td>
<td height="40" colspan="2" bgcolor="#FFFFFF"><label>
<textarea name="Notes" id="Notes"></textarea>
</label></td>
<td bgcolor="#FFFFFF">&nbsp;</td>
</tr>
<tr>
<td height="30" bgcolor="#FFFFFF">&nbsp;</td>
<td width="114" bgcolor="#FFFFFF"><label>
<input type="submit" name="Submit" value="Submit" />
</label></td>
<td width="218" bgcolor="#FFFFFF"><label>
<input name="Reset" type="reset" id="Reset" value="Reset" />
</label></td>
<td bgcolor="#FFFFFF">&nbsp;</td>
</tr>
<tr>
<td height="30" bgcolor="#FFFFFF">&nbsp;</td>
<td colspan="2" bgcolor="#FFFFFF">&nbsp;</td>
<td bgcolor="#FFFFFF">&nbsp;</td>
</tr>
<tr>
<td height="35" bgcolor="#FFFFFF">&nbsp;</td>
<td colspan="2" bgcolor="#FFFFFF">&nbsp;</td>
<td bgcolor="#FFFFFF">&nbsp;</td>
</tr>
<tr>
<td height="38" colspan="5" bgcolor="#E9E9CE"><script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','width','1013','heig ht','38','src','swf/uzelint_alt','quality','high','pluginspage','http://www.macromedia.com/go/getflashplayer','bgcolor','#E9E9CE','movie','swf/uzelint_alt' ); //end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="1013" height="38">
<param name="movie" value="swf/uzelint_alt.swf" />
<param name="quality" value="high" /><param name="BGCOLOR" value="#E9E9CE" />
<embed src="swf/uzelint_alt.swf" width="1013" height="38" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" bgcolor="#E9E9CE"></embed>
</object></noscript></td>
</tr>
</table>
</form> </td>
</tr>
</table>
</body>
</html>

edbr
10-13-2010, 08:19 AM
you are using
<body onload="MM_validateForm('Patients Name','','R','DateOfBirth','','R','EmergencyContac t','','R');return document.MM_returnValue">

edbr
10-13-2010, 08:23 AM
this works

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script type="text/javascript" language="JavaScript1.2" src="stmenu.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>UIC</title>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-right: 0px;
margin-top: 0px;
margin-bottom: 0px;
background-repeat: repeat-x;
background-image: url(images/mainBG.png);
background-color: #E9E9CE;
}
.style3 { font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 14px;
color: #83A05D;
}
.style5 {font-family: Arial, Helvetica, sans-serif; font-size: 11px; color: #666666; }
-->
</style>
<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
<script type="text/JavaScript">
<!--
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_validateForm() { //v4.0
var i,p,q,nm,test,num,min,max,errors='',args=MM_valida teForm.arguments;
for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
if (val) { nm=val.name; if ((val=val.value)!="") {
if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';
} else if (test!='R') { num = parseFloat(val);
if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
min=test.substring(8,p); max=test.substring(p+1);
if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
} } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; }
} if (errors) alert('The following error(s) occurred:\n'+errors);
document.MM_returnValue = (errors == '');
}
//-->
</script>
</head>
<body>
<table width="1013" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td width="1017" height="50" bgcolor="#83A05D">&nbsp;</td>
</tr>
<tr>
<td bgcolor="#83A05D"><script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','width','1013','heig ht','227','src','swf/uzelint','quality','high','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','swf/uzelint' ); //end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/s...rsion=7,0,19,0" width="1013" height="227">
<param name="movie" value="swf/uzelint.swf" />
<param name="quality" value="high" />
<embed src="swf/uzelint.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="1013" height="227"></embed>
</object></noscript></td>
</tr>
<tr>
<td><script type="text/javascript" language="JavaScript1.2" src="menuuzel.js"></script></td>
</tr>
<tr>
<td></td>
</tr>

<tr>
<td height="630"><form action="/sendresults.php" method="post" name="contact form" id="contact form" onSubmit="MM_validateForm('Patients Name','','R','DateOfBirth','','R','EmergencyContac t','','R');return document.MM_returnValue">
<table width="1013" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="358" height="700" rowspan="18" valign="top" bgcolor="#FFFFFF"><script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','width','300','heigh t','700','align','top','src','swf/uzelint_m_shorter','quality','high','pluginspage', 'http://www.macromedia.com/go/getflashplayer','bgcolor','#FFFFFF','movie','swf/uzelint_m_shorter' ); //end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/s...rsion=7,0,19,0" width="300" height="700" align="top">
<param name="movie" value="swf/uzelint_m_shorter.swf" />
<param name="quality" value="high" /><param name="BGCOLOR" value="#FFFFFF" />
<embed src="swf/uzelint_m_shorter.swf" width="300" height="700" align="top" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" bgcolor="#FFFFFF"></embed>
</object></noscript></td>
<td height="35" colspan="3" bgcolor="#FFFFFF"><label><span class="style3">UZEL INTERNATIONAL PATIENT PROFILE </span></label></td>
<td width="126" bgcolor="#FFFFFF">&nbsp;</td>
</tr>
<tr>
<td width="197" height="30" bgcolor="#FFFFFF"><span class="style5">Patient's Name</span></td>
<td height="30" colspan="2" bgcolor="#FFFFFF"><label>
<input name="Patients Name" type="text" id="Patients Name" />
</label></td>
<td bgcolor="#FFFFFF">&nbsp;</td>
</tr>

<tr>
<td height="30" bgcolor="#FFFFFF" class="style5">Date of Birth (MM/DD/YYYY)</td>
<td height="30" colspan="2" bgcolor="#FFFFFF"><label>
<input name="DateOfBirth" type="text" id="DateOfBirth" />
</label></td>
<td bgcolor="#FFFFFF">&nbsp;</td>
</tr>
<tr>
<td height="30" bgcolor="#FFFFFF" class="style5">Mother's Name</td>
<td height="30" colspan="2" bgcolor="#FFFFFF"><label>
<input name="MothersName" type="text" id="MothersName" />
</label></td>
<td bgcolor="#FFFFFF">&nbsp;</td>
</tr>
<tr>
<td height="30" bgcolor="#FFFFFF" class="style5">Father's Name</td>
<td height="30" colspan="2" bgcolor="#FFFFFF"><label>
<input name="FathersName" type="text" id="FathersName" />
</label></td>
<td bgcolor="#FFFFFF">&nbsp;</td>
</tr>
<tr>
<td height="30" bgcolor="#FFFFFF" class="style5">Emergency Contact</td>
<td height="30" colspan="2" bgcolor="#FFFFFF"><label>
<input name="EmergencyContact" type="text" id="EmergencyContact" />
</label></td>
<td bgcolor="#FFFFFF">&nbsp;</td>
</tr>
<tr>
<td height="40" bgcolor="#FFFFFF" class="style5">Address</td>
<td height="40" colspan="2" bgcolor="#FFFFFF"><label>
<textarea name="adress" id="adress"></textarea>
</label></td>
<td bgcolor="#FFFFFF">&nbsp;</td>
</tr>
<tr>
<td height="30" bgcolor="#FFFFFF" class="style5">Tel #</td>
<td height="30" colspan="2" bgcolor="#FFFFFF"><label>
<input name="Tel" type="text" id="Tel" />
</label></td>
<td bgcolor="#FFFFFF">&nbsp;</td>
</tr>
<tr>
<td height="30" bgcolor="#FFFFFF" class="style5">Cell #</td>
<td height="30" colspan="2" bgcolor="#FFFFFF"><label>
<input name="Cell" type="text" id="Cell" />
</label></td>
<td bgcolor="#FFFFFF">&nbsp;</td>
</tr>
<tr>
<td height="30" bgcolor="#FFFFFF" class="style5">Fax #</td>
<td height="30" colspan="2" bgcolor="#FFFFFF"><label>
<input name="Fax" type="text" id="Fax" />
</label></td>
<td bgcolor="#FFFFFF">&nbsp;</td>
</tr>
<tr>
<td height="30" bgcolor="#FFFFFF" class="style5">E-Mail</td>
<td height="30" colspan="2" bgcolor="#FFFFFF"><label>
<input name="Email" type="text" id="Email" />
</label></td>
<td bgcolor="#FFFFFF">&nbsp;</td>
</tr>
<tr>
<td height="30" bgcolor="#FFFFFF" class="style5">Diagnosis</td>
<td height="30" colspan="2" bgcolor="#FFFFFF"><label>
<input name="Diagnosis" type="text" id="Diagnosis" />
</label></td>
<td bgcolor="#FFFFFF">&nbsp;</td>
</tr>

<tr>
<td height="40" bgcolor="#FFFFFF" class="style5">Current Physician + Hospital Name</td>
<td height="40" colspan="2" bgcolor="#FFFFFF"><label>
<textarea name="PhysicianHospital" id="PhysicianHospital"></textarea>
</label></td>
<td bgcolor="#FFFFFF">&nbsp;</td>
</tr>
<tr>
<td height="40" bgcolor="#FFFFFF" class="style5">Physician Contact Information</td>
<td height="40" colspan="2" bgcolor="#FFFFFF"><label>
<textarea name="PhysicianContact" id="PhysicianContact"></textarea>
</label></td>
<td bgcolor="#FFFFFF">&nbsp;</td>
</tr>
<tr>
<td height="40" bgcolor="#FFFFFF" class="style5">Notes</td>
<td height="40" colspan="2" bgcolor="#FFFFFF"><label>
<textarea name="Notes" id="Notes"></textarea>
</label></td>
<td bgcolor="#FFFFFF">&nbsp;</td>
</tr>
<tr>
<td height="30" bgcolor="#FFFFFF">&nbsp;</td>
<td width="114" bgcolor="#FFFFFF"><label>
<input type="submit" name="Submit" value="Submit" />
</label></td>
<td width="218" bgcolor="#FFFFFF"><label>
<input name="Reset" type="reset" id="Reset" value="Reset" />
</label></td>
<td bgcolor="#FFFFFF">&nbsp;</td>
</tr>
<tr>
<td height="30" bgcolor="#FFFFFF">&nbsp;</td>
<td colspan="2" bgcolor="#FFFFFF">&nbsp;</td>
<td bgcolor="#FFFFFF">&nbsp;</td>
</tr>
<tr>
<td height="35" bgcolor="#FFFFFF">&nbsp;</td>
<td colspan="2" bgcolor="#FFFFFF">&nbsp;</td>
<td bgcolor="#FFFFFF">&nbsp;</td>
</tr>
<tr>
<td height="38" colspan="5" bgcolor="#E9E9CE"><script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','width','1013','heig ht','38','src','swf/uzelint_alt','quality','high','pluginspage','http://www.macromedia.com/go/getflashplayer','bgcolor','#E9E9CE','movie','swf/uzelint_alt' ); //end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/s...rsion=7,0,19,0" width="1013" height="38">
<param name="movie" value="swf/uzelint_alt.swf" />
<param name="quality" value="high" /><param name="BGCOLOR" value="#E9E9CE" />
<embed src="swf/uzelint_alt.swf" width="1013" height="38" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" bgcolor="#E9E9CE"></embed>
</object></noscript></td>
</tr>
</table>
</form> </td>
</tr>
</table>
</body>
</html>

bertman
10-13-2010, 08:25 AM
What should I use or change in that part?

bertman
10-13-2010, 08:28 AM
sorry didnt see your second post...
Trying now.

bertman
10-13-2010, 08:38 AM
I pasted your code into DW and tried but I receive still the same problem..

http://www.bilgizone.com/uzelint/patientform.html

When I check source I still see;


<body onload="MM_validateForm('Patients Name','','R','DateOfBirth','','R','EmergencyContac t','','R');return document.MM_returnValue">


like it comes automatically...

bertman
10-13-2010, 08:40 AM
Now I made a new html and it worked but this time it sends the form empty again...

edbr
10-13-2010, 08:41 AM
no just me being sloppy

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script type="text/javascript" language="JavaScript1.2" src="stmenu.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>UIC</title>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-right: 0px;
margin-top: 0px;
margin-bottom: 0px;
background-repeat: repeat-x;
background-image: url(images/mainBG.png);
background-color: #E9E9CE;
}
.style3 { font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 14px;
color: #83A05D;
}
.style5 {font-family: Arial, Helvetica, sans-serif; font-size: 11px; color: #666666; }
-->
</style>
<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
<script type="text/JavaScript">
<!--
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_validateForm() { //v4.0
var i,p,q,nm,test,num,min,max,errors='',args=MM_valida teForm.arguments;
for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
if (val) { nm=val.name; if ((val=val.value)!="") {
if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';
} else if (test!='R') { num = parseFloat(val);
if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
min=test.substring(8,p); max=test.substring(p+1);
if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
} } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; }
} if (errors) alert('The following error(s) occurred:\n'+errors);
document.MM_returnValue = (errors == '');
}
//-->
</script>
</head>
<body>
<table width="1013" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td width="1017" height="50" bgcolor="#83A05D">&nbsp;</td>
</tr>
<tr>
<td bgcolor="#83A05D"><script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','width','1013','heig ht','227','src','swf/uzelint','quality','high','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','swf/uzelint' ); //end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/s...rsion=7,0,19,0" width="1013" height="227">
<param name="movie" value="swf/uzelint.swf" />
<param name="quality" value="high" />
<embed src="swf/uzelint.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="1013" height="227"></embed>
</object></noscript></td>
</tr>
<tr>
<td><script type="text/javascript" language="JavaScript1.2" src="menuuzel.js"></script></td>
</tr>
<tr>
<td></td>
</tr>

<tr>
<td height="630"><form action="/sendresults.php" method="post" name="contact form" id="contact form" onSubmit="MM_validateForm('Patients Name','','R','DateOfBirth','','R','EmergencyContac t','','R');return document.MM_returnValue">
<table width="1013" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="358" height="700" rowspan="18" valign="top" bgcolor="#FFFFFF"><script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','width','300','heigh t','700','align','top','src','swf/uzelint_m_shorter','quality','high','pluginspage', 'http://www.macromedia.com/go/getflashplayer','bgcolor','#FFFFFF','movie','swf/uzelint_m_shorter' ); //end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/s...rsion=7,0,19,0" width="300" height="700" align="top">
<param name="movie" value="swf/uzelint_m_shorter.swf" />
<param name="quality" value="high" /><param name="BGCOLOR" value="#FFFFFF" />
<embed src="swf/uzelint_m_shorter.swf" width="300" height="700" align="top" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" bgcolor="#FFFFFF"></embed>
</object></noscript></td>
<td height="35" colspan="3" bgcolor="#FFFFFF"><label><span class="style3">UZEL INTERNATIONAL PATIENT PROFILE </span></label></td>
<td width="126" bgcolor="#FFFFFF">&nbsp;</td>
</tr>
<tr>
<td width="197" height="30" bgcolor="#FFFFFF"><span class="style5">Patient's Name</span></td>
<td height="30" colspan="2" bgcolor="#FFFFFF"><label>
<input name="Patients Name" type="text" id="Patients Name" />
</label></td>
<td bgcolor="#FFFFFF">&nbsp;</td>
</tr>

<tr>
<td height="30" bgcolor="#FFFFFF" class="style5">Date of Birth (MM/DD/YYYY)</td>
<td height="30" colspan="2" bgcolor="#FFFFFF"><label>
<input name="DateOfBirth" type="text" id="DateOfBirth" />
</label></td>
<td bgcolor="#FFFFFF">&nbsp;</td>
</tr>
<tr>
<td height="30" bgcolor="#FFFFFF" class="style5">Mother's Name</td>
<td height="30" colspan="2" bgcolor="#FFFFFF"><label>
<input name="MothersName" type="text" id="MothersName" />
</label></td>
<td bgcolor="#FFFFFF">&nbsp;</td>
</tr>
<tr>
<td height="30" bgcolor="#FFFFFF" class="style5">Father's Name</td>
<td height="30" colspan="2" bgcolor="#FFFFFF"><label>
<input name="FathersName" type="text" id="FathersName" />
</label></td>
<td bgcolor="#FFFFFF">&nbsp;</td>
</tr>
<tr>
<td height="30" bgcolor="#FFFFFF" class="style5">Emergency Contact</td>
<td height="30" colspan="2" bgcolor="#FFFFFF"><label>
<input name="EmergencyContact" type="text" id="EmergencyContact" />
</label></td>
<td bgcolor="#FFFFFF">&nbsp;</td>
</tr>
<tr>
<td height="40" bgcolor="#FFFFFF" class="style5">Address</td>
<td height="40" colspan="2" bgcolor="#FFFFFF"><label>
<textarea name="adress" id="adress"></textarea>
</label></td>
<td bgcolor="#FFFFFF">&nbsp;</td>
</tr>
<tr>
<td height="30" bgcolor="#FFFFFF" class="style5">Tel #</td>
<td height="30" colspan="2" bgcolor="#FFFFFF"><label>
<input name="Tel" type="text" id="Tel" />
</label></td>
<td bgcolor="#FFFFFF">&nbsp;</td>
</tr>
<tr>
<td height="30" bgcolor="#FFFFFF" class="style5">Cell #</td>
<td height="30" colspan="2" bgcolor="#FFFFFF"><label>
<input name="Cell" type="text" id="Cell" />
</label></td>
<td bgcolor="#FFFFFF">&nbsp;</td>
</tr>
<tr>
<td height="30" bgcolor="#FFFFFF" class="style5">Fax #</td>
<td height="30" colspan="2" bgcolor="#FFFFFF"><label>
<input name="Fax" type="text" id="Fax" />
</label></td>
<td bgcolor="#FFFFFF">&nbsp;</td>
</tr>
<tr>
<td height="30" bgcolor="#FFFFFF" class="style5">E-Mail</td>
<td height="30" colspan="2" bgcolor="#FFFFFF"><label>
<input name="Email" type="text" id="Email" />
</label></td>
<td bgcolor="#FFFFFF">&nbsp;</td>
</tr>
<tr>
<td height="30" bgcolor="#FFFFFF" class="style5">Diagnosis</td>
<td height="30" colspan="2" bgcolor="#FFFFFF"><label>
<input name="Diagnosis" type="text" id="Diagnosis" />
</label></td>
<td bgcolor="#FFFFFF">&nbsp;</td>
</tr>

<tr>
<td height="40" bgcolor="#FFFFFF" class="style5">Current Physician + Hospital Name</td>
<td height="40" colspan="2" bgcolor="#FFFFFF"><label>
<textarea name="PhysicianHospital" id="PhysicianHospital"></textarea>
</label></td>
<td bgcolor="#FFFFFF">&nbsp;</td>
</tr>
<tr>
<td height="40" bgcolor="#FFFFFF" class="style5">Physician Contact Information</td>
<td height="40" colspan="2" bgcolor="#FFFFFF"><label>
<textarea name="PhysicianContact" id="PhysicianContact"></textarea>
</label></td>
<td bgcolor="#FFFFFF">&nbsp;</td>
</tr>
<tr>
<td height="40" bgcolor="#FFFFFF" class="style5">Notes</td>
<td height="40" colspan="2" bgcolor="#FFFFFF"><label>
<textarea name="Notes" id="Notes"></textarea>
</label></td>
<td bgcolor="#FFFFFF">&nbsp;</td>
</tr>
<tr>
<td height="30" bgcolor="#FFFFFF">&nbsp;</td>
<td width="114" bgcolor="#FFFFFF"><label>
<input type="submit" name="Submit" value="Submit" />
</label></td>
<td width="218" bgcolor="#FFFFFF"><label>
<input name="Reset" type="reset" id="Reset" value="Reset" />
</label></td>
<td bgcolor="#FFFFFF">&nbsp;</td>
</tr>
<tr>
<td height="30" bgcolor="#FFFFFF">&nbsp;</td>
<td colspan="2" bgcolor="#FFFFFF">&nbsp;</td>
<td bgcolor="#FFFFFF">&nbsp;</td>
</tr>
<tr>
<td height="35" bgcolor="#FFFFFF">&nbsp;</td>
<td colspan="2" bgcolor="#FFFFFF">&nbsp;</td>
<td bgcolor="#FFFFFF">&nbsp;</td>
</tr>
<tr>
<td height="38" colspan="5" bgcolor="#E9E9CE"><script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','width','1013','heig ht','38','src','swf/uzelint_alt','quality','high','pluginspage','http://www.macromedia.com/go/getflashplayer','bgcolor','#E9E9CE','movie','swf/uzelint_alt' ); //end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/s...rsion=7,0,19,0" width="1013" height="38">
<param name="movie" value="swf/uzelint_alt.swf" />
<param name="quality" value="high" /><param name="BGCOLOR" value="#E9E9CE" />
<embed src="swf/uzelint_alt.swf" width="1013" height="38" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" bgcolor="#E9E9CE"></embed>
</object></noscript></td>
</tr>
</table>
</form> </td>
</tr>
</table>
</body>
</html>

bertman
10-13-2010, 09:02 AM
Now my code is the same like yours and I still can send empty forms if I click "send"

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script type="text/javascript" language="JavaScript1.2" src="stmenu.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>UIC</title>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-right: 0px;
margin-top: 0px;
margin-bottom: 0px;
background-repeat: repeat-x;
background-image: url(images/mainBG.png);
background-color: #E9E9CE;
}
.style3 { font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 14px;
color: #83A05D;
}
.style5 {font-family: Arial, Helvetica, sans-serif; font-size: 11px; color: #666666; }
-->
</style>
<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
<script type="text/JavaScript">
<!--
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_validateForm() { //v4.0
var i,p,q,nm,test,num,min,max,errors='',args=MM_valida teForm.arguments;
for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
if (val) { nm=val.name; if ((val=val.value)!="") {
if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';
} else if (test!='R') { num = parseFloat(val);
if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
min=test.substring(8,p); max=test.substring(p+1);
if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
} } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; }
} if (errors) alert('The following error(s) occurred:\n'+errors);
document.MM_returnValue = (errors == '');
}
//-->
</script>
</head>
<body >
<table width="1013" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td width="1017" height="50" bgcolor="#83A05D">&nbsp;</td>
</tr>
<tr>
<td bgcolor="#83A05D"><script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','width','1013','heig ht','227','src','swf/uzelint','quality','high','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','swf/uzelint' ); //end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/s...rsion=7,0,19,0" width="1013" height="227">
<param name="movie" value="swf/uzelint.swf" />
<param name="quality" value="high" />
<embed src="swf/uzelint.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="1013" height="227"></embed>
</object></noscript></td>
</tr>
<tr>
<td><script type="text/javascript" language="JavaScript1.2" src="menuuzel.js"></script></td>
</tr>
<tr>
<td></td>
</tr>

<tr>
<td height="630"><form action="/sendresults.php" method="post" name="contact form" target="_self" id="contact form">
<table width="1013" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="358" height="700" rowspan="18" valign="top" bgcolor="#FFFFFF"><script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','width','300','heigh t','700','align','top','src','swf/uzelint_m_shorter','quality','high','pluginspage', 'http://www.macromedia.com/go/getflashplayer','bgcolor','#FFFFFF','movie','swf/uzelint_m_shorter' ); //end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/s...rsion=7,0,19,0" width="300" height="700" align="top">
<param name="movie" value="swf/uzelint_m_shorter.swf" />
<param name="quality" value="high" /><param name="BGCOLOR" value="#FFFFFF" />
<embed src="swf/uzelint_m_shorter.swf" width="300" height="700" align="top" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" bgcolor="#FFFFFF"></embed>
</object></noscript></td>
<td height="35" colspan="3" bgcolor="#FFFFFF"><label><span class="style3">UZEL INTERNATIONAL PATIENT PROFILE </span></label></td>
<td width="126" bgcolor="#FFFFFF">&nbsp;</td>
</tr>
<tr>
<td width="197" height="30" bgcolor="#FFFFFF"><span class="style5">Patient's Name</span></td>
<td height="30" colspan="2" bgcolor="#FFFFFF"><label>
<input name="Patients Name" type="text" id="Patients Name" />
</label></td>
<td bgcolor="#FFFFFF">&nbsp;</td>
</tr>

<tr>
<td height="30" bgcolor="#FFFFFF" class="style5">Date of Birth (MM/DD/YYYY)</td>
<td height="30" colspan="2" bgcolor="#FFFFFF"><label>
<input name="DateOfBirth" type="text" id="DateOfBirth" />
</label></td>
<td bgcolor="#FFFFFF">&nbsp;</td>
</tr>
<tr>
<td height="30" bgcolor="#FFFFFF" class="style5">Mother's Name</td>
<td height="30" colspan="2" bgcolor="#FFFFFF"><label>
<input name="MothersName" type="text" id="MothersName" />
</label></td>
<td bgcolor="#FFFFFF">&nbsp;</td>
</tr>
<tr>
<td height="30" bgcolor="#FFFFFF" class="style5">Father's Name</td>
<td height="30" colspan="2" bgcolor="#FFFFFF"><label>
<input name="FathersName" type="text" id="FathersName" />
</label></td>
<td bgcolor="#FFFFFF">&nbsp;</td>
</tr>
<tr>
<td height="30" bgcolor="#FFFFFF" class="style5">Emergency Contact</td>
<td height="30" colspan="2" bgcolor="#FFFFFF"><label>
<input name="EmergencyContact" type="text" id="EmergencyContact" />
</label></td>
<td bgcolor="#FFFFFF">&nbsp;</td>
</tr>
<tr>
<td height="40" bgcolor="#FFFFFF" class="style5">Address</td>
<td height="40" colspan="2" bgcolor="#FFFFFF"><label>
<textarea name="adress" id="adress"></textarea>
</label></td>
<td bgcolor="#FFFFFF">&nbsp;</td>
</tr>
<tr>
<td height="30" bgcolor="#FFFFFF" class="style5">Tel #</td>
<td height="30" colspan="2" bgcolor="#FFFFFF"><label>
<input name="Tel" type="text" id="Tel" />
</label></td>
<td bgcolor="#FFFFFF">&nbsp;</td>
</tr>
<tr>
<td height="30" bgcolor="#FFFFFF" class="style5">Cell #</td>
<td height="30" colspan="2" bgcolor="#FFFFFF"><label>
<input name="Cell" type="text" id="Cell" />
</label></td>
<td bgcolor="#FFFFFF">&nbsp;</td>
</tr>
<tr>
<td height="30" bgcolor="#FFFFFF" class="style5">Fax #</td>
<td height="30" colspan="2" bgcolor="#FFFFFF"><label>
<input name="Fax" type="text" id="Fax" />
</label></td>
<td bgcolor="#FFFFFF">&nbsp;</td>
</tr>
<tr>
<td height="30" bgcolor="#FFFFFF" class="style5">E-Mail</td>
<td height="30" colspan="2" bgcolor="#FFFFFF"><label>
<input name="Email" type="text" id="Email" />
</label></td>
<td bgcolor="#FFFFFF">&nbsp;</td>
</tr>
<tr>
<td height="30" bgcolor="#FFFFFF" class="style5">Diagnosis</td>
<td height="30" colspan="2" bgcolor="#FFFFFF"><label>
<input name="Diagnosis" type="text" id="Diagnosis" />
</label></td>
<td bgcolor="#FFFFFF">&nbsp;</td>
</tr>

<tr>
<td height="40" bgcolor="#FFFFFF" class="style5">Current Physician + Hospital Name</td>
<td height="40" colspan="2" bgcolor="#FFFFFF"><label>
<textarea name="PhysicianHospital" id="PhysicianHospital"></textarea>
</label></td>
<td bgcolor="#FFFFFF">&nbsp;</td>
</tr>
<tr>
<td height="40" bgcolor="#FFFFFF" class="style5">Physician Contact Information</td>
<td height="40" colspan="2" bgcolor="#FFFFFF"><label>
<textarea name="PhysicianContact" id="PhysicianContact"></textarea>
</label></td>
<td bgcolor="#FFFFFF">&nbsp;</td>
</tr>
<tr>
<td height="40" bgcolor="#FFFFFF" class="style5">Notes</td>
<td height="40" colspan="2" bgcolor="#FFFFFF"><label>
<textarea name="Notes" id="Notes"></textarea>
</label></td>
<td bgcolor="#FFFFFF">&nbsp;</td>
</tr>
<tr>
<td height="30" bgcolor="#FFFFFF">&nbsp;</td>
<td width="114" bgcolor="#FFFFFF"><label>
<input type="submit" name="Submit" value="Submit" />
</label></td>
<td width="218" bgcolor="#FFFFFF"><label>
<input name="Reset" type="reset" id="Reset" value="Reset" />
</label></td>
<td bgcolor="#FFFFFF">&nbsp;</td>
</tr>
<tr>
<td height="30" bgcolor="#FFFFFF">&nbsp;</td>
<td colspan="2" bgcolor="#FFFFFF">&nbsp;</td>
<td bgcolor="#FFFFFF">&nbsp;</td>
</tr>
<tr>
<td height="35" bgcolor="#FFFFFF">&nbsp;</td>
<td colspan="2" bgcolor="#FFFFFF">&nbsp;</td>
<td bgcolor="#FFFFFF">&nbsp;</td>
</tr>
<tr>
<td height="38" colspan="5" bgcolor="#E9E9CE"><script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','width','1013','heig ht','38','src','swf/uzelint_alt','quality','high','pluginspage','http://www.macromedia.com/go/getflashplayer','bgcolor','#E9E9CE','movie','swf/uzelint_alt' ); //end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/s...rsion=7,0,19,0" width="1013" height="38">
<param name="movie" value="swf/uzelint_alt.swf" />
<param name="quality" value="high" /><param name="BGCOLOR" value="#E9E9CE" />
<embed src="swf/uzelint_alt.swf" width="1013" height="38" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" bgcolor="#E9E9CE"></embed>
</object></noscript></td>
</tr>
</table>
</form> </td>
</tr>
</table>
</body>
</html>

could be something wrong with my php file?

// Makes all fields required. If set to '1' no field can not be empty. If set to '0' any or all fields can be empty.

$req = '0'; $req = '1'; which should I have?

edbr
10-13-2010, 09:07 AM
$req = '1'; is the javascript validation ok now?

bertman
10-13-2010, 10:03 AM
it goes to confirmation.html whilst I leave the form empty when click on send button..
But I dont recieve an empty mail at least :)
Thanks for all your help :)