Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Javascript: return true/false
Name: mie2com Date: November 27, 2006 at 17:52:09 Pacific OS: WinXP CPU/Ram: Pentium III Product: Sony
Comment:
what does this event use for? is it just for link?
Name: Michael J (by mjdamato) Date: November 27, 2006 at 22:06:32 Pacific
Reply:
No, it can be used for anything where you want a true/false response. For example if you have a FORM on your page you could create an onsubmit trigger to call a function to validate the informating the user entered into the form. If the validation passes you can return true and submit the form. If the validation fails you can return false and have the form not be submitted.
Summary: I suspect you are getting that error because when you first navigate to that page there is no POST data. So the foreach fails beacause $_POST["liked"] is not an array. This line is_array($_POST["Liked...
Summary: I am tring to write a validation script for a website I maintain, I have the code written and works fine. However, I need to add a if statement to say if the phone and email are empty, set focus to th...
Summary: Well, since I have no idea what kind of environment you are running (i.e. PHP/APD, MySQL database, etc., etc.) and because it appears you are just starting out and are still learning I will provide a ...