validation close but no cigar

  • buzzby365
  • Proficient
  • Proficient
  • No Avatar
  • Joined: May 14, 2004
  • Posts: 288
  • Status: Offline

Post July 15th, 2004, 5:37 am

is it possible to send information from a htm file to a php file even tho the php file actions itself?

i have 2 files.
send.htm
getstarted.php

i want to pass values from send.htm to getstarted.php without the getstartedform.php being submitted. the only thing is that when getstarted.php is filled out, it then performs the action on itself because all the database info and check are in the same file.

anyway round this at all?
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post July 15th, 2004, 5:37 am

  • buzzby365
  • Proficient
  • Proficient
  • No Avatar
  • Joined: May 14, 2004
  • Posts: 288
  • Status: Offline

Post July 15th, 2004, 2:16 pm

i have this javascript validation working a few days ago. now, it is only part working. one if statement does a check on fields entered like name, email address, postcode etc. the other if statement deals with radio buttons. now the radio button script doesnt work at all. does anyone know how that can be?
Code: [ Select ]
if (mainform.contactpostcode.value=='')
        {
        alert('Your contact postcode is a required field. Please try again.');
        event.returnValue=false;
        }
    if (!(mainform.doyouneed[0].checked || mainform.doyouneed[1].checked || mainform.doyouneed[2].checked || mainform.doyouneed[3].checked))
        {
        alert('Your need is a required field. Please try again.');
        event.returnValue=false;
        }
  1. if (mainform.contactpostcode.value=='')
  2.         {
  3.         alert('Your contact postcode is a required field. Please try again.');
  4.         event.returnValue=false;
  5.         }
  6.     if (!(mainform.doyouneed[0].checked || mainform.doyouneed[1].checked || mainform.doyouneed[2].checked || mainform.doyouneed[3].checked))
  7.         {
  8.         alert('Your need is a required field. Please try again.');
  9.         event.returnValue=false;
  10.         }
  • buzzby365
  • Proficient
  • Proficient
  • No Avatar
  • Joined: May 14, 2004
  • Posts: 288
  • Status: Offline

Post July 15th, 2004, 2:53 pm

this is the whole javascript code

Code: [ Select ]
<SCRIPT>
function validate() {
    if (mainform.name.value=='')
        {
        alert('Your name is a required field. Please try again.');
        event.returnValue=false;
        }
    if (mainform.email.value=='')
        {
        alert('Your email is a required field. Please try again.');
        event.returnValue=false;
        }
    if (mainform.contactaddress.value=='')
        {
        alert('Your contact address is a required field. Please try again.');
        event.returnValue=false;
        }
    if (mainform.workhometel.value=='')
        {
        alert('Your work / home telephone number is a required field. Please try again.');
        event.returnValue=false;
        }
    if (mainform.contactpostcode.value=='')
        {
        alert('Your contact postcode is a required field. Please try again.');
        event.returnValue=false;
        }
    if (!(mainform.doyouneed[0].checked || mainform.doyouneed[1].checked || mainform.doyouneed[2].checked || mainform.doyouneed[3].checked))
        {
        alert('Your need is a required field. Please try again.');
        event.returnValue=false;
        }
    if (!(mainform.designstyle[0].checked || mainform.designstyle[1].checked || mainform.designstyle[2].checked || mainform.designstyle[3].checked))
        {
        alert('Your design style is a required field. Please try again.');
        event.returnValue=false;
        }
    if (!(mainform.project[0].checked || mainform.project[1].checked || mainform.project[2].checked || mainform.project[3].checked))
        {
        alert('Your project is a required field. Please try again.');
        event.returnValue=false;
        }
    if (!(mainform.uses[0].checked || mainform.uses[1].checked || mainform.uses[2].checked || mainform.uses[3].checked))
        {
        alert('Your uses is a required field. Please try again.');
        event.returnValue=false;
        }
    if (!(mainform.programtimecompletion[0].checked || mainform.programtimecompletion[1].checked || mainform.programtimecompletion[2].checked || mainform.programtimecompletion[3].checked))
        {
        alert('Your program time completion is a required field. Please try again.');
        event.returnValue=false;
        }
    if (!(mainform.budgetcost[0].checked || mainform.budgetcost[1].checked || mainform.budgetcost[2].checked || mainform.budgetcost[3].checked))
        {
        alert('Your budget cost is a required field. Please try again.');
        event.returnValue=false;
        }
    if (!(mainform.projectdeadline[0].checked || mainform.projectdeadline[1].checked || mainform.projectdeadline[2].checked || mainform.projectdeadline[3].checked))
        {
        alert('Your project deadline is a required field. Please try again.');
        event.returnValue=false;
        }
    if (!(mainform.whybuild[0].checked || mainform.whybuild[1].checked || mainform.whybuild[2].checked || mainform.whybuild[3].checked))
        {
        alert('Your reason to build is a required field. Please try again.');
        event.returnValue=false;
        }
}
</SCRIPT>

<form method="POST" name="mainform" action="getstartedform.php" onsubmit="validate();">
  1. <SCRIPT>
  2. function validate() {
  3.     if (mainform.name.value=='')
  4.         {
  5.         alert('Your name is a required field. Please try again.');
  6.         event.returnValue=false;
  7.         }
  8.     if (mainform.email.value=='')
  9.         {
  10.         alert('Your email is a required field. Please try again.');
  11.         event.returnValue=false;
  12.         }
  13.     if (mainform.contactaddress.value=='')
  14.         {
  15.         alert('Your contact address is a required field. Please try again.');
  16.         event.returnValue=false;
  17.         }
  18.     if (mainform.workhometel.value=='')
  19.         {
  20.         alert('Your work / home telephone number is a required field. Please try again.');
  21.         event.returnValue=false;
  22.         }
  23.     if (mainform.contactpostcode.value=='')
  24.         {
  25.         alert('Your contact postcode is a required field. Please try again.');
  26.         event.returnValue=false;
  27.         }
  28.     if (!(mainform.doyouneed[0].checked || mainform.doyouneed[1].checked || mainform.doyouneed[2].checked || mainform.doyouneed[3].checked))
  29.         {
  30.         alert('Your need is a required field. Please try again.');
  31.         event.returnValue=false;
  32.         }
  33.     if (!(mainform.designstyle[0].checked || mainform.designstyle[1].checked || mainform.designstyle[2].checked || mainform.designstyle[3].checked))
  34.         {
  35.         alert('Your design style is a required field. Please try again.');
  36.         event.returnValue=false;
  37.         }
  38.     if (!(mainform.project[0].checked || mainform.project[1].checked || mainform.project[2].checked || mainform.project[3].checked))
  39.         {
  40.         alert('Your project is a required field. Please try again.');
  41.         event.returnValue=false;
  42.         }
  43.     if (!(mainform.uses[0].checked || mainform.uses[1].checked || mainform.uses[2].checked || mainform.uses[3].checked))
  44.         {
  45.         alert('Your uses is a required field. Please try again.');
  46.         event.returnValue=false;
  47.         }
  48.     if (!(mainform.programtimecompletion[0].checked || mainform.programtimecompletion[1].checked || mainform.programtimecompletion[2].checked || mainform.programtimecompletion[3].checked))
  49.         {
  50.         alert('Your program time completion is a required field. Please try again.');
  51.         event.returnValue=false;
  52.         }
  53.     if (!(mainform.budgetcost[0].checked || mainform.budgetcost[1].checked || mainform.budgetcost[2].checked || mainform.budgetcost[3].checked))
  54.         {
  55.         alert('Your budget cost is a required field. Please try again.');
  56.         event.returnValue=false;
  57.         }
  58.     if (!(mainform.projectdeadline[0].checked || mainform.projectdeadline[1].checked || mainform.projectdeadline[2].checked || mainform.projectdeadline[3].checked))
  59.         {
  60.         alert('Your project deadline is a required field. Please try again.');
  61.         event.returnValue=false;
  62.         }
  63.     if (!(mainform.whybuild[0].checked || mainform.whybuild[1].checked || mainform.whybuild[2].checked || mainform.whybuild[3].checked))
  64.         {
  65.         alert('Your reason to build is a required field. Please try again.');
  66.         event.returnValue=false;
  67.         }
  68. }
  69. </SCRIPT>
  70. <form method="POST" name="mainform" action="getstartedform.php" onsubmit="validate();">


now it doesnt work at all. well the radio button code doesnt work at all

can someone test it and let me know what is going on?
  • Banjer
  • Novice
  • Novice
  • No Avatar
  • Joined: Jul 14, 2004
  • Posts: 21
  • Status: Offline

Post July 15th, 2004, 4:30 pm

Nevermind i didn't read it very well..
  • SpooF
  • ٩๏̯͡๏۶
  • Bronze Member
  • User avatar
  • Joined: May 22, 2004
  • Posts: 3415
  • Loc: Richland, WA
  • Status: Offline

Post July 15th, 2004, 4:58 pm

show code please.
  • buzzby365
  • Proficient
  • Proficient
  • No Avatar
  • Joined: May 14, 2004
  • Posts: 288
  • Status: Offline

Post July 15th, 2004, 5:39 pm

the code is pretty self explanitory. i can see that the getstartedform performs its own action and therefore the send.htm will act in a similar way. here is the send.htm code:
Code: [ Select ]
<body>
<form name="form1" id="form1" method="post" action="getstartedform.php">
 <table width="410" border="0">
  <tr>
   <td width="139">name</td>
   <td width="261"><input type="text" name="name" /></td>
  </tr>
  <tr>
   <td>email</td>
   <td><input type="text" name="email" /></td>
  </tr>
  <tr>
   <td>&nbsp;</td>
   <td><input type="submit" name="submit" value="submit" /></td>
  </tr>
 </table>
</form>
</body>
  1. <body>
  2. <form name="form1" id="form1" method="post" action="getstartedform.php">
  3.  <table width="410" border="0">
  4.   <tr>
  5.    <td width="139">name</td>
  6.    <td width="261"><input type="text" name="name" /></td>
  7.   </tr>
  8.   <tr>
  9.    <td>email</td>
  10.    <td><input type="text" name="email" /></td>
  11.   </tr>
  12.   <tr>
  13.    <td>&nbsp;</td>
  14.    <td><input type="submit" name="submit" value="submit" /></td>
  15.   </tr>
  16.  </table>
  17. </form>
  18. </body>


now here is the coding part of the getstartedform.php

Code: [ Select ]
<?php

//extract($_REQUEST);

if ($_POST['submit'])
{
$user="";
$host="";
$password="";
$database="";
$connection=mysql_connect($host,$user,$password) or die ("could not connect to server");
$db=mysql_select_db($database,$connection);
$sql = "insert into gstrialforma(my_date, name, email, contactaddress, mobile, workhometel, contactpostcode, projectpostcode, doyouneed, designstyle, project, uses, engineer, partywall, architect, projectmanager, design, lifestyle, structural, planning, buildingregs, otherhelp, wheelchair, partialeyesight, terraced, familychildern, semidetached, aged, allergy, detached, other, otherneeds, specifyneeds, programtimecompletion, budgetcost, projectdeadline, whybuild, otherpreferences) values ('{$_POST['my_date']}','{$_POST['name']}','{$_POST['email']}','{$_POST['contactaddress']}','{$_POST['mobile']}','{$_POST['workhometel']}','{$_POST['contactpostcode']}','{$_POST['projectpostcode']}','{$_POST['doyouneed']}','{$_POST['designstyle']}','{$_POST['project']}','{$_POST['uses']}','{$_POST['engineer']}','{$_POST['partywall']}','{$_POST['architect']}','{$_POST['projectmanager']}','{$_POST['design']}','{$_POST['lifestyle']}','{$_POST['structural']}','{$_POST['planning']}','{$_POST['buildingregs']}','{$_POST['otherhelp']}','{$_POST['wheelchair']}','{$_POST['partialeyesight']}','{$_POST['terraced']}','{$_POST['familychildern']}','{$_POST['semidetached']}','{$_POST['aged']}','{$_POST['allergy']}','{$_POST['detached']}','{$_POST['other']}','{$_POST['otherneeds']}','{$_POST['specifyneeds']}','{$_POST['programtimecompletion']}','{$_POST['budgetcost']}','{$_POST['projectdeadline']}','{$_POST['whybuild']}','{$_POST['otherpreferences']}')";
$result = mysql_query($sql) or print(mysql_error());
//mail($to, $subject, $msg, $additional_headers);
mail($_POST['email'],'Building Doctors','Hello '.$_POST['name'].', thank you for your enquirey on '.$_POST['my_date'].'. We will be following up your request shortly. You have said that: Your preferred Design Style is '.$_POST['designstyle'].'. Your approximate Construction Budget is £'.$_POST['budgetcost'].'. Please review the useful links about Profesional and our Duty of care policy located at the bottom right of the site. In the meantime wait for our call. Regards, Building Doctor', "From: athompson@building-doctors.com");
echo "<table border=1 cellpadding=2 cellspacing=2 class=biggertext><tr><td>";
echo "</tr></td><tr><td><img src=images/cr_header.gif></tr></td><tr><td>";
echo 'Hello '.$_POST['name'].', thank you for your enquirey on '.$_POST['my_date'].'.<br>We will be following up your request shortly. <br><br>You have said that: <br>Your preferred Design Style is '.$_POST['designstyle'].'. <br>Your approximate Construction Budget is £'.$_POST['budgetcost'].'.<br><br>Please review the useful links about Profesional and our Duty of care policy located at the bottom right of the site. <p>In the meantime wait for our call. <p><p>Regards, <br>Building Doctor';
echo "</tr></td></table>";
echo "<body onLoad=redirect() text=#000000 link=#00FFFF vlink=#C0C0C0>";
}
else
{
?>
<body leftmargin="0" topmargin="0">//start of the html form
<table width="400" align="center"height="246" border="0" cellpadding="0" cellspacing="0" class="biggertext">
 <tr>
  <td height="30" valign="top" ><form method="POST" name="mainform" action="getstartedform.php" onsubmit="validate();">
  1. <?php
  2. //extract($_REQUEST);
  3. if ($_POST['submit'])
  4. {
  5. $user="";
  6. $host="";
  7. $password="";
  8. $database="";
  9. $connection=mysql_connect($host,$user,$password) or die ("could not connect to server");
  10. $db=mysql_select_db($database,$connection);
  11. $sql = "insert into gstrialforma(my_date, name, email, contactaddress, mobile, workhometel, contactpostcode, projectpostcode, doyouneed, designstyle, project, uses, engineer, partywall, architect, projectmanager, design, lifestyle, structural, planning, buildingregs, otherhelp, wheelchair, partialeyesight, terraced, familychildern, semidetached, aged, allergy, detached, other, otherneeds, specifyneeds, programtimecompletion, budgetcost, projectdeadline, whybuild, otherpreferences) values ('{$_POST['my_date']}','{$_POST['name']}','{$_POST['email']}','{$_POST['contactaddress']}','{$_POST['mobile']}','{$_POST['workhometel']}','{$_POST['contactpostcode']}','{$_POST['projectpostcode']}','{$_POST['doyouneed']}','{$_POST['designstyle']}','{$_POST['project']}','{$_POST['uses']}','{$_POST['engineer']}','{$_POST['partywall']}','{$_POST['architect']}','{$_POST['projectmanager']}','{$_POST['design']}','{$_POST['lifestyle']}','{$_POST['structural']}','{$_POST['planning']}','{$_POST['buildingregs']}','{$_POST['otherhelp']}','{$_POST['wheelchair']}','{$_POST['partialeyesight']}','{$_POST['terraced']}','{$_POST['familychildern']}','{$_POST['semidetached']}','{$_POST['aged']}','{$_POST['allergy']}','{$_POST['detached']}','{$_POST['other']}','{$_POST['otherneeds']}','{$_POST['specifyneeds']}','{$_POST['programtimecompletion']}','{$_POST['budgetcost']}','{$_POST['projectdeadline']}','{$_POST['whybuild']}','{$_POST['otherpreferences']}')";
  12. $result = mysql_query($sql) or print(mysql_error());
  13. //mail($to, $subject, $msg, $additional_headers);
  14. mail($_POST['email'],'Building Doctors','Hello '.$_POST['name'].', thank you for your enquirey on '.$_POST['my_date'].'. We will be following up your request shortly. You have said that: Your preferred Design Style is '.$_POST['designstyle'].'. Your approximate Construction Budget is £'.$_POST['budgetcost'].'. Please review the useful links about Profesional and our Duty of care policy located at the bottom right of the site. In the meantime wait for our call. Regards, Building Doctor', "From: athompson@building-doctors.com");
  15. echo "<table border=1 cellpadding=2 cellspacing=2 class=biggertext><tr><td>";
  16. echo "</tr></td><tr><td><img src=images/cr_header.gif></tr></td><tr><td>";
  17. echo 'Hello '.$_POST['name'].', thank you for your enquirey on '.$_POST['my_date'].'.<br>We will be following up your request shortly. <br><br>You have said that: <br>Your preferred Design Style is '.$_POST['designstyle'].'. <br>Your approximate Construction Budget is £'.$_POST['budgetcost'].'.<br><br>Please review the useful links about Profesional and our Duty of care policy located at the bottom right of the site. <p>In the meantime wait for our call. <p><p>Regards, <br>Building Doctor';
  18. echo "</tr></td></table>";
  19. echo "<body onLoad=redirect() text=#000000 link=#00FFFF vlink=#C0C0C0>";
  20. }
  21. else
  22. {
  23. ?>
  24. <body leftmargin="0" topmargin="0">//start of the html form
  25. <table width="400" align="center"height="246" border="0" cellpadding="0" cellspacing="0" class="biggertext">
  26.  <tr>
  27.   <td height="30" valign="top" ><form method="POST" name="mainform" action="getstartedform.php" onsubmit="validate();">

there you see that the getstartedform.php performs a check on itself then submits.
  • SpooF
  • ٩๏̯͡๏۶
  • Bronze Member
  • User avatar
  • Joined: May 22, 2004
  • Posts: 3415
  • Loc: Richland, WA
  • Status: Offline

Post July 15th, 2004, 6:02 pm

im still not quite sure what you are trying to do all im getting is this:

you have a form and you want to submit it to this php that checks the form and then submits it to the database??
  • Cafu
  • Student
  • Student
  • No Avatar
  • Joined: Jul 15, 2004
  • Posts: 97
  • Status: Offline

Post July 15th, 2004, 11:48 pm

That code worked for me in IE.

Is it getting through the whole function? I was thinking that maybe if you are referencing an invalid form object the function could be dying before it reaches the radio button validation.

For example, if "workhometel" is mispelled or doesn't exist in the form, you may not be getting to the radio button validation.

Also, your code doesn't work for me in Netscape (v7.1). You should be referencing the form as document.mainform, not just mainform.
  • buzzby365
  • Proficient
  • Proficient
  • No Avatar
  • Joined: May 14, 2004
  • Posts: 288
  • Status: Offline

Post July 16th, 2004, 3:41 am

ok. the first code is a form that submits the info to the 2nd form. the 2nd form actually submits all the info to the database. but because the 1st and 2nd form use the second form as the action, both submit data to the database
  • Nem
  • Guru
  • Guru
  • No Avatar
  • Joined: Feb 13, 2004
  • Posts: 1243
  • Loc: UK
  • Status: Offline

Post July 16th, 2004, 3:51 am

instead of having something like:

PHP Code: [ Select ]
 
'{$_POST['my_date']}'
 
 
  1.  
  2. '{$_POST['my_date']}'
  3.  
  4.  


use

PHP Code: [ Select ]
 
$_POST['my_date']
 
 
  1.  
  2. $_POST['my_date']
  3.  
  4.  
GSDomains.com -Click here - Packages starting from £3.69 a month. 1.5GB Space & 10GB Bandwidth.
  • buzzby365
  • Proficient
  • Proficient
  • No Avatar
  • Joined: May 14, 2004
  • Posts: 288
  • Status: Offline

Post July 16th, 2004, 4:02 am

send.htm is a form that sends the info to the getstartedform.php
send.htm isnt a php file so i cannot have $_post['my_date'] at all. what i want to do is send the info that is filled out in the send.htm to the getstartedform.php

the action is getstartedform.php but on the actual getstartedform.php the action is also getstartedform.php so maybe it cannot be done then
  • buzzby365
  • Proficient
  • Proficient
  • No Avatar
  • Joined: May 14, 2004
  • Posts: 288
  • Status: Offline

Post July 16th, 2004, 6:57 am

Code: [ Select ]
<script language="JavaScript" type="text/javascript">
<!--
function x(){
return;
}
function validate(){
    if ((document.getstartedform.name.value=='') || (document.getstartedform.email.value=='') || (document.getstartedform.mobile.value=='')){
        alert('Please check all fields again before submitting as there are some missing entries');
        return false;
        }
    
     if ((document.getstartedform.doyouneed[0].checked == false ) && ( document.getstartedform.doyouneed[1].checked == false ) && ( document.getstartedform.doyouneed[2].checked == false ) && ( document.getstartedform.doyouneed[3].checked == false ))
    {
     alert ( "Please register your type of need" );
     return false;
    }
        else {
        return true;
        }
    }
//-->
</script>
  1. <script language="JavaScript" type="text/javascript">
  2. <!--
  3. function x(){
  4. return;
  5. }
  6. function validate(){
  7.     if ((document.getstartedform.name.value=='') || (document.getstartedform.email.value=='') || (document.getstartedform.mobile.value=='')){
  8.         alert('Please check all fields again before submitting as there are some missing entries');
  9.         return false;
  10.         }
  11.     
  12.      if ((document.getstartedform.doyouneed[0].checked == false ) && ( document.getstartedform.doyouneed[1].checked == false ) && ( document.getstartedform.doyouneed[2].checked == false ) && ( document.getstartedform.doyouneed[3].checked == false ))
  13.     {
  14.      alert ( "Please register your type of need" );
  15.      return false;
  16.     }
  17.         else {
  18.         return true;
  19.         }
  20.     }
  21. //-->
  22. </script>


part of this code works and part does not.

this part works:

Code: [ Select ]
if ((document.getstartedform.name.value=='') || (document.getstartedform.email.value=='') || (document.getstartedform.mobile.value=='')){
        alert('Please check all fields again before submitting as there are some missing entries');
        return false;
        }
  1. if ((document.getstartedform.name.value=='') || (document.getstartedform.email.value=='') || (document.getstartedform.mobile.value=='')){
  2.         alert('Please check all fields again before submitting as there are some missing entries');
  3.         return false;
  4.         }


but this part does not:
Code: [ Select ]
if ((document.getstartedform.doyouneed[0].checked == false ) && ( document.getstartedform.doyouneed[1].checked == false ) && ( document.getstartedform.doyouneed[2].checked == false ) && ( document.getstartedform.doyouneed[3].checked == false ))
    {
     alert ( "Please register your type of need" );
     return false;
    }
  1. if ((document.getstartedform.doyouneed[0].checked == false ) && ( document.getstartedform.doyouneed[1].checked == false ) && ( document.getstartedform.doyouneed[2].checked == false ) && ( document.getstartedform.doyouneed[3].checked == false ))
  2.     {
  3.      alert ( "Please register your type of need" );
  4.      return false;
  5.     }


the top one is for a text field. the botton one is for a checkbox (i assume it can work for a radio button or checkbox) or radio button. either way it doesnt work at all. can someone adjust this so they both work?
  • SpooF
  • ٩๏̯͡๏۶
  • Bronze Member
  • User avatar
  • Joined: May 22, 2004
  • Posts: 3415
  • Loc: Richland, WA
  • Status: Offline

Post July 16th, 2004, 10:14 am

send -> getstartedform -> getstartedform

getstartedform.php submits to a database right?
so why dont you just do something like this so the form in getstartedform.php has to be filled out along with form (not sure if this works still dont get it sorry dude)

PHP Code: [ Select ]
if($getstartedform == submit && $form == submit) {
 
//database stuff
 
}
  1. if($getstartedform == submit && $form == submit) {
  2.  
  3. //database stuff
  4.  
  5. }
  • s15199d
  • Expert
  • Expert
  • User avatar
  • Joined: Feb 20, 2004
  • Posts: 524
  • Loc: NC, USA
  • Status: Offline

Post July 16th, 2004, 12:24 pm

Code: [ Select ]
var i=0;
form = document.getstartedform;
    
for (i=0;i < form.doyouneed.length; i++){
    if (form.doyouneed[i].checked == false){
        alert("Please register your type of need");
        return false;
    }
}
  1. var i=0;
  2. form = document.getstartedform;
  3.     
  4. for (i=0;i < form.doyouneed.length; i++){
  5.     if (form.doyouneed[i].checked == false){
  6.         alert("Please register your type of need");
  7.         return false;
  8.     }
  9. }

***this code just addresses your code that doesn't work***


first of all try this loop it should be more efficient then concatenating everything in a long if. Plus if you don't know loops you might study this...b/c in the future if you have more than 4 options to check this could save you a lot of coding & run time.

Lastly, i'm pretty tired so I can't think right now...but I'm trying to remember if arrays work for check boxes. My guess is yet. But, it could be that arrays don't work for them. I'll think about it some more...and post when my brain has woken up some!
Image
Give a man a fish he eats for a day. Teach a man to fish he eats for a lifetime.
  • buzzby365
  • Proficient
  • Proficient
  • No Avatar
  • Joined: May 14, 2004
  • Posts: 288
  • Status: Offline

Post July 16th, 2004, 4:48 pm

thank you so much for that.
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post July 16th, 2004, 4:48 pm

Post Information

  • Total Posts in this topic: 24 posts
  • Users browsing this forum: this213 and 163 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.