Sunday, May 19, 2024
 Popular · Latest · Hot · Upcoming
27
rated 0 times [  34] [ 7]  / answers: 1 / hits: 178132  / 11 Years ago, thu, may 16, 2013, 12:00:00

I'm having a bit of trouble with my current issue. Any help would be greatly appreciated.



I have a step in a 'signup process' which I don't need anymore, but I don't have time to reconfigure the entire process so I'm trying to auto submit the form on page load so it will basically skip over this step. Any thoughts?



EDIT: Sorry, I should mention, originally there were two submit options, I got rid of one, now I just want to submit the 'mem_type' option on page load. not sure if that makes much of a difference.



<form method=post action=<?=$base_href.url(signup)?> name=member_signup>
<input type=hidden name=process value=facility_info>
<input type=hidden name=create_order value=true>

<?php
foreach ($_POST as $k=>$d) {
if ($k === 'textarea') continue;
echo <input type=hidden name=.strip_tags($k). value=.strip_tags($d).>;
}
?>

<input type=submit value=submit name=mem_type border=0>
</form>

More From » forms

 Answers
77

Try this
On window load submit your form.



window.onload = function(){
document.forms['member_signup'].submit();
}

[#78187] Wednesday, May 15, 2013, 11 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
jonrened

Total Points: 627
Total Questions: 114
Total Answers: 99

Location: Zimbabwe
Member since Thu, Jul 21, 2022
2 Years ago
;