Forum Moderators: coopster & phranque

Message Too Old, No Replies

Auto Submit

Is it possible to submit without click?

         

monolift

5:29 pm on Oct 17, 2002 (gmt 0)

10+ Year Member



I have a form that needs to be confirmed before the user sees it.

Is there a way to make a form submit without the user actually clicking the submit button?

dingman

5:37 pm on Oct 17, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



<element onPickYourEvent="document.forms.formname.submit();">

Why on earth do you need to submit a form without the user seeing it? Isn't the whole point of a form to get user input?

dhdweb

6:10 pm on Oct 17, 2002 (gmt 0)

10+ Year Member



What do you mean by "confirmed before the user sees it"?

monolift

7:10 pm on Oct 17, 2002 (gmt 0)

10+ Year Member



I need to automate a login process for a client. They have a username and password for a booking system that they would like their clients to be able to use. I have a form that will send the information, but a confirmation screen comes up that needs to be submitted.

They don't want their users to see this screen becuase information can be edited. If the confirmation form can be submitted automatically, then the users can use the booking system.

transistor

5:48 pm on Oct 18, 2002 (gmt 0)

10+ Year Member



I don't fully understand why a login has to be automated, what's the point of a login?

I use an "invisible form" in a Content Management System I developed, and usually looks like this:


<form name="return" method="post" action="<? echo $some_url?>">
<input type="hidden" name="id" value="<? echo $id?>">
<input type="hidden" name="mssg" value="<? echo $mssg?>">
</form>
<script language="JavaScript" type="text/javascript">
document.return.submit();
</script>

Thus, the form is automagically submitted without the user knowing what is going on.

If that booking system is developed by you or this client of yours (and considering I understand correctly what you need) I would suggest setting a cookie and if it exists, then skip the login page.