Jump to content

ccl

New Members
  • Posts

    7
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

ccl's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. function checkForm(myForm) { if (myForm.myNumberField.length != 5) { alert ("Please enter 4 zeros before number"); myForm.myNumberField.focus(); return false; } return true; } <form on submit = "return checkForm(this)>
  2. get rid of the brackets around the number at the end of the radio buttons on the form. regracechoix1
  3. php runs on the server so you can not use a php function in the browser. You have to submit the page if you want to use php.
  4. This is pseudo code: var a = math.abs((pointA.x -pointB.x) * (pointA.x - pointB.x)); var b = math.abs((pointA.y -pointB.y) * (pointA.x - pointB.y)); var h = a + b; var distance = math.sqrt(h);
  5. var tbls = document.getElementsByTagName("table"); var i; for (i = 0; i < tbls.length; i++) { var t = tbls.item(i); t.style.display = "none"; } <table style="display:block;"> </table>
  6. The way your function currently reads is: If any of the fields are empty, check to see if the password and confirm password fields match. function chkForm(frm) { if (frm.uname.value == "") { alert("Please enter a user name"); frm.uname.focus(); return false; } if (frm.pass.value == "") { alert("Please enter a password"); frm.pass.focus(); return false; } if (frm.pass1.value == "") { alert("Please confirm your password"); frm.pass1.focus(); return false; } if (frm.fname.value == "") { alert("Please enter your first name"); frm.fname.focus(); return false; } if (frm.lname.value == "") { alert("Please enter your last name"); frm.lname.focus(); return false; } if (frm.email.value == "") { alert("Please enter your email"); frm.email.focus(); return false; } if (frm.pass.value != frm.pass1.value) { alert("Your password and confirmation do not match"); frm.pass.focus(); return false; } return true; } <form name="myForm" id="myForm" action="somePage" method="post" on submit = "return chkForm(this)">
  7. ccl

    Spreadsheet

    You would have to do it with server side code. I know ColdFusion can do it and I assume that PHP etc could do it too.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.