I have a text box , Which i am using for Entering a URL . I would like that when i click on the submit button , the Text box is Validated .
I want that the Value entered in the text box be a valid URL which includes the http://www. part
I basically want that its a valid URL.
The Code of the Form is
<form action="next.php" method="get">
<input id="home_page_input" type="text" name="page" value="http://"onfocus="this.value = ( this.value == this.defaultValue ) ? '' : this.value;return true;">
<input id="url_input_button" type="submit" value="enter it !" />
</form>
Actully , this form is being send to a php file that is Using Curl /file_get_contents. so i just want it in a format that curl doesnt show up any error’s
jQuery validation plugin supports URL validation. See the example at http://docs.jquery.com/Plugins/validation