Skip to content Skip to sidebar Skip to footer

Form Is Submit But Values Are Not Passing

When I submit form by using below function it is submitting but values are not passed through this function. I use all functions but nothing found: document.getElementById('postad'

Solution 1:

Your form contains two form controls. Neither will be a successful control (i.e. one that appears in the submitted data), but for different reasons.

Only form controls with name attributes can be successful. Your text input doesn't have a name. (It also doesn't have a default value, so you need to type in it first).

Buttons can only be successful if they are the submit button used to submit the form. Your button isn't a submit button and you use JavaScript to submit the form.

Solution 2:

There is no name attribute in your input text fields

 <input name="post_title"class="textfield2"type="text"id="post_title" style="width:640px;" placeholder="Ad Title" onBlur="check('post_title')" />
 .........^

Post a Comment for "Form Is Submit But Values Are Not Passing"