Jump to content
Killersites Forums

JFab

Member
  • Posts

    5
  • Joined

  • Last visited

Everything posted by JFab

  1. MySQL and form validation

  2. JFab

    Print VS Echo functions

    No problem echo is slightly faster, but not a worry if your in a habit of using print. I understand a lot of programmers coming from C still accidently use 'printf' instead of 'print' thinking it's the same function, hehe.
  3. Hello Killersites, This is my first [relative] thread that might even help some of you. You may have been wondering, "What is the difference between Echo and Print?". I'm here to answer you that! You may notice that these two scripts do identically the same thing: <?php print "Hello World!"; ?> <?php echo "Hello World!"; ?> The only difference between these two scripts is that I use "print" rather than "echo", vice versa. I find that most old-fashioned programmers use 'print' rather than 'echo', due to the use in Java and C++, however in C++ it is actually called 'printf'. They both do the same exact thing, so why are there two!? Read more (learnphponline article)
  4. Thanks Krillz, falkencreative, and Stef! I appreciate your responces very much. I have a lot of ideas on the table as to what I wish to learn. Thus far I plan on learning how to install a few CMS engines, Javascript (which I studied for a while before), PHP and the study of web usability. I want to make my pages both designed properly & coded well, as mentioned above. I would also like to study web accesability (making webpages available for handycapped) as well. To make a proper portfolio, how should I format it? I currently have what courses I have taken here at my high school web design based, and a few courses i've taken online. I'm yet to do any free-lance work because I seem to get shuved aside when the time comes to pick a designer. I am going to be creating a portfolio website shortly, which I plan to put all of what I know onto it as documentation. I wanted to attend Full Sail university, however it is quite expensive and from the tune of many forums - it isn't well liked. I would be paying them back till the day I died I've used a few popular editors, most credibly Adobe Dreamweaver. However, I am [ironicly] in Frontpage class. I think i'll get to know a few editors and CMS systems. Thanks for the advice! -Jeff
  5. JFab

    Email validation

    Hello! Sorry I don't really understand your situation, however here is a Javascript function I implement to check the email of the user. <script type="text/javascript"> /*********************************************** * No need to edit this function. The only thing you will need to edit is the submit button. * Example <input type="submit" name="submit" onclick="return checkmail([color="#FF0000"]this.form.myemail[/color])" value="Sign Up" /> * In the example above, you would have to change the argument (this.form.myemai) to match where your input box is located. * So you may use something like this *<input type="submit" name="submit" onclick="return checkmail(this.[color="#FF0000"]FORMNAME.INPUTNAME[/color])" value="Sign Up" /> ***********************************************/ var emailfilter=/^\w+[\+\.\w-]*@([\w-]+\.)*\w+[\w-]*\.([a-z]{2,4}|\d+)$/i function checkmail(e){ var returnval=emailfilter.test(e.value) if (returnval==false){ alert("Please enter a valid email address.") e.select() } return returnval } </script> So your complete [simple] document may look like this: <html> <head> <title>SIMPLE DOCUMENT - Check email</title> <script type="text/javascript"> var emailfilter=/^\w+[\+\.\w-]*@([\w-]+\.)*\w+[\w-]*\.([a-z]{2,4}|\d+)$/i //Declare global var to check against function checkmail(e) //Call this function when validating an email { var returnval=emailfilter.test(e.value) if (returnval==false){ alert("Please enter a valid email address.") e.select() } return returnval } </script> </head> <body> <form name="form1" action="process.php" method="post"> Email: <input type="text" name="email1" value="someone@somewhere.com" /> <br /> <input type="submit" value="Check email" onclick="return checkmail(this.form1.email1)" /> /* When clicked - the value of email1 will be compared to the vairable - if it all checks out, the email was fine. */ </form> </body> </html>
  6. Hello Killer sites, I recently subscribed to killer sites tutorials after friend told me about this site. I hope to learn as much as I can before I hid the job market. I was wondering, what are some ways I can improve my portfolio, or increase my likelihood of landing my dream job? What do employers look for? I've done several courses at VTC, Lynda.com and now starting here. I am certified XHTML and CSS at w3 schools, which I think is a decent start. I'm 17 years old and currently still in high school getting my education. I plan on attending a college, still not real sure about which one, yet. So maybe you can enlighten me as to what I should focus on? I am aware that certifications greatly help, but I simply can't afford to be getting certified in every language. I am currently saving up for college. Thanks, -Jeff
×
×
  • Create New...