G
Graham
I have long thought there is something missing with HTML forms, in that
there should be a provision for a form with hidden input fields, with the
whole form being hidden, in particular with no submit button that requires
clicking.
I have a form that, when processed by a Perl CGI script, sends back a
'Thankyou' message to the user, and I then want to tell the user that in a
few seconds he will be taken to the next stage of the process, using a
'<meta http-equiv="Refresh" content="5;
url=http://www.mydomain.com/cgi-bin/myscript.pl\">' tag to do it. But I'm
perplexed as to how to incorporate a 'hidden' form into this process, i.e.
one that will have hidden input fields and no submit button. I have been
experimenting by modifying this tag to '<meta http-equiv="Refresh"
content="5; onLoad="myscript.submit();">' with 'onsubmit="return v.exec()"'
added to the form declaration tag, and I have also tried using other
'onChange' , 'onBlur', and other Javascript event-handling attributes in
place of 'onLoad', the aim being to force a 'hidden' form to be submitted
when the page is refreshed. But nothing seems to work.
Any ideas anyone?
there should be a provision for a form with hidden input fields, with the
whole form being hidden, in particular with no submit button that requires
clicking.
I have a form that, when processed by a Perl CGI script, sends back a
'Thankyou' message to the user, and I then want to tell the user that in a
few seconds he will be taken to the next stage of the process, using a
'<meta http-equiv="Refresh" content="5;
url=http://www.mydomain.com/cgi-bin/myscript.pl\">' tag to do it. But I'm
perplexed as to how to incorporate a 'hidden' form into this process, i.e.
one that will have hidden input fields and no submit button. I have been
experimenting by modifying this tag to '<meta http-equiv="Refresh"
content="5; onLoad="myscript.submit();">' with 'onsubmit="return v.exec()"'
added to the form declaration tag, and I have also tried using other
'onChange' , 'onBlur', and other Javascript event-handling attributes in
place of 'onLoad', the aim being to force a 'hidden' form to be submitted
when the page is refreshed. But nothing seems to work.
Any ideas anyone?