Advertisement

form submit

Moderators: Calcifer, slothy

form submit

Postby lking79 » Tue Jun 19, 2007 10:01 am

Hello,

How can I check that a form has been submitted with

formObj = new DHTMLSuite.form({ formRef:'myForm',action:'myfile.php',responseEl:'compose' });


The $_POST['submit'] (on my submit button) doesn't work anymore, because now the attribute is 'button' and not 'submit'.

thanks for the help
lking79
 
Posts: 118
Joined: Sun Jun 10, 2007 6:48 pm
Location: Geneva

Postby Batalf » Tue Jun 19, 2007 10:46 am

Maybe you can check on another field.

Example:

<?

if(isset($_POST['firstname'])){
// Form is submitted






}


?>
Batalf
Site Admin
 
Posts: 2160
Joined: Sat Oct 22, 2005 9:38 pm

Postby lking79 » Tue Jun 19, 2007 10:50 am

that's what I did as for now, but I'm not entirely satisfied with that solution :roll:
lking79
 
Posts: 118
Joined: Sun Jun 10, 2007 6:48 pm
Location: Geneva


Return to General questions regarding AJAX scripts

Who is online

Users browsing this forum: No registered users and 6 guests

cron