You need to define the action="" attribute in the form so it can be submitted, otherwise it's going nowhere.
- ricardo On Oct 9, 11:36 am, ijlal <[EMAIL PROTECTED]> wrote: > hi whats the error wid tese lines of code. the form is not submitting when we > click on go button. i dont want the go button to be of type submit. i get no > errors in firebug js console but still the form is not submited. > > code: > > <?php > if(isset($_POST["submit"])) > { > echo "yes form is submitted"; > > } > > ?> > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> > <html xmlns="http://www.w3.org/1999/xhtml"> > <head> > <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> > <script type="text/javascript" src="jquery.js"></script> > <script type="text/javascript"> > $(document).ready(function(){ > > $('#ss').click(function(){ > $("#myform").submit();})}); > </script> > <title>Untitled Document</title> > </head> > <body> > <form id="myform" name="myform" action="" method="post"> > <input type="text" name="name" value="good" /> > <input type="button" name="submit" id="ss" value="go"/> > </form> > </body></html> > > thanks.. > -- > View this message in > context:http://www.nabble.com/simple-form-not-submitting-tp19884663s27240p198... > Sent from the jQuery General Discussion mailing list archive at Nabble.com.