pouncer Posted April 8, 2009 Share Posted April 8, 2009 I currently use PHP to do this: $rsslink = $_POST['txtRSS']; if ($rsslink == "") echo "<b>You didn't specify any link to add.</b>"; But I want to replace it with javascript and throw a msgbox onto the screen instead. Any ideas anyone? Quote Link to comment Share on other sites More sharing options...
Adam Posted April 8, 2009 Share Posted April 8, 2009 You don't have to replace it with JavaScript, simply add JavaScript validation as well. You should never rely on JavaScript as validation as it's client side and the user can simply disable it. You'd be best off reading a tutorial on this so you understand better. Millions available on Google, just the first result. Adam Quote Link to comment Share on other sites More sharing options...
Axeia Posted April 8, 2009 Share Posted April 8, 2009 http://www.elated.com/articles/form-validation-with-javascript/ In the middle of the page, exactly what you're looking for. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.