Jump to content

form submits every time you request something from another class???


darksniperx

Recommended Posts

I have html form

from time to time I access methods from class forms since it contains all of the function are needed to work with forms.

in the form it self I request 2 different functions from class form, the thing is when I press submit button, the form submits it self the ammount of times as the function that request data from forms.php class.

 

html doc
$forms-> new form;
<form method="post" action="" onsubmit="validator()">
A<input type='text' value="<?php $form->getA(); ?>"/>
B<input type='text' value="<?php $form->getB(); ?>"/>
<input name='formEntry_submit' type='submit' value='Submit' /> |
</form>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.