Jump to content

demeritrious

Members
  • Posts

    30
  • Joined

  • Last visited

Everything posted by demeritrious

  1. I decided to start over...no more allowing DW to do any coding for me. Thanks anyway
  2. So should I do a formula that involves? $date = date('-18Y-m-d');
  3. Good evening, I am working on a birthday validation using Jquery datepicker. I am trying to make the birthday section validate whether the birthday input is in a date format and I want to prevent users under 18 from join. Thank you accountsettings.php <input type="text" name="Birthday" id="Birthday" maxlength="50" value=" <?php if($form->value("Birthday") == ""){ echo $session->userinfo['Birthday']; }else{ echo $form->value("Birthday"); } ?>"> process.php function register( $subuser, $subconfirmuser, $subpass, $subconfirmpass, $subemail, $subconfirmemail, $subFirstname, $subLastname, $subGender, $subBirthday, $subRegion, $subCountry, $subCity_State, $subQuestion, $subAnswer, $subConfirmAnswer){ global $database, $form, $mailer; //The database, form and mailer object /* Birthday error checking */ $field = "Birthday"; //Use field name for Birthday if(!$subBirthday || strlen($subBirthday = trim($subBirthday)) == 0){ $form->setError($field, "* Birthday not entered"); } else{ /* I've attempted different formulas but it did not work here */ $date = date('yyyy-mm-dd'); if( $subBirthday > $date){ $form->setError($field, "* You are too young!"); } }
  4. Thank you all for responding...I will try my best to explain this. My code is all over the place but keep in mind I am attempting to teach myself how to do this: <code removed> My Goals are: 1. I want the Like/Dislike not only to work with the Topic name (as it already does) I would like it to work with the user's messages and reply messages as well. 2. I would like to connect the Autocomplete function to my database (I am able to get it to work with the script by itself but it will not work when I added it to Mainpage.php. 3. A better pagination script than the one that comes with dreamweaver. I was able to get one to work on its own but it had some minor errors and only shows <<previous [1][2][3] next>>. But even that would not work with the mainpage.php <code removed> I hope this isn't too much thank you for helping. Demeritrious
  5. I am working on a website and I am at a standstill. I would rather speak to someone one on one but its been very difficult to find someone that could help. I have the scripts that I want but when I add the scripts to the mainpage everything stops working. I really don't want to go to wordpress because I am almost done with this one. Thanks.
×
×
  • 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.