ASP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 



Go Back   Dev Articles Community ForumsProgrammingASP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old September 9th, 2004, 03:40 AM
paulcommand paulcommand is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 6 paulcommand User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 m 29 sec
Reputation Power: 0
Red face How I can auto submit form?

I want to auto submit form.

After all the script in page run. Or after the specified time.

Please Help

Reply With Quote
  #2  
Old September 11th, 2004, 12:26 PM
CCSBuz CCSBuz is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 3 CCSBuz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thumbs up

I assume you're using javascript, and don't want the user to use a SUBMIT button. Otherwise,
you'd put 'onSubmit="return scriptname()"' in the HTML FORM tag where the named script ends
with 'return true'. (or 'return false', to abort it!)

Otherwise, you can submit the form anytime with the script statement 'document.formname.submit()'
where the FORM tag includes ID="formname". If you want to execute this statement after a specified
time, execute the script statement 'timername=setTimeout("functionname()",<milliseconds>)',
where the named function contains the statement above. If you need to abort the timeout in your
code, execute 'clearTimeout(timername)'.

Reply With Quote
  #3  
Old September 11th, 2004, 01:14 PM
CCSBuz CCSBuz is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 3 CCSBuz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Exclamation Correction!

Minor correction to my last posting - See the script below for the
correct object reference syntax for the SUBMIT method!

(I tested this one!)


<html>
<head>
<title>TEST</title>
</head>
<body>
<form ID="fname" action="/aspapps/logscr.asp">
</form>
<SCRIPT LANGUAGE="Javascript">
<!--
document.forms("fname").submit()
//--></SCRIPT>

</body>
</html>

Reply With Quote
  #4  
Old January 24th, 2013, 10:02 AM
tazogamer tazogamer is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2013
Posts: 2 tazogamer User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 18 m 57 sec
Reputation Power: 0
Here is a working auto-submit method: when page is loaded, it will the form will be immediately autosubmited (the values can be set with php variables).
Code:
<form action="page.php"  method="post">
<input type="text" name="example1" value="<?php echo $_POST['something1'];?>" />
<input type="text" name="example2" value="ANOTHER_YOUR_VALUE" />
<input type="submit" />
</form>

<SCRIPT LANGUAGE="JavaScript">document.forms[0].submit();</SCRIPT>


for example, the $_POST['something1'] value is received from the previous real-user submited Form, and this form can add another input with ANOTHER_YOUR_VALUE.

___________

Reply With Quote
  #5  
Old January 25th, 2013, 12:19 AM
v1technologies v1technologies is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2013
Posts: 5 v1technologies User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 52 m 32 sec
Reputation Power: 0
just tell me about how we can compare two text-box that if both are same then go ahead otherwise error.

Reply With Quote
  #6  
Old February 24th, 2013, 11:00 AM
david100 david100 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2013
Posts: 1 david100 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 m 46 sec
Reputation Power: 0
the form should be inserted inside body, and script can be execution body. so when page is loaded, it will be immediately executed:

Code:
<html><head></head>

<body>

<form action="page.php" method="post">
<input type="text" name="example1" value="blabla" />
<input type="submit" />
</form>


</body>
<SCRIPT LANGUAGE=JavaScript>document.forms[0].submit();</SCRIPT>
</html>
Here is a working auto-submit method: when page is loaded, it will the form will be immediately autosubmited (the values can be set with php variables).
Code:
<form action="page.php" method="post">
<input type="text" name="example1" value="<?php echo $_POST['something1'];?>" />
<input type="text" name="example2" value="ANOTHER_YOUR_VALUE" />
<input type="submit" />
</form>

<SCRIPT LANGUAGE="JavaScript">document.forms[0].submit();</SCRIPT>
for example, the $_POST['something1'] value is received from the previous real-user submited Form, and this form can add another input with ANOTHER_YOUR_VALUE.

Reply With Quote
  #7  
Old April 11th, 2013, 04:03 AM
pooleracm pooleracm is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2013
Posts: 2 pooleracm User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 m 55 sec
Reputation Power: 0
I assume you're using javascript, and don't want the user to use a SUBMIT button.

Reply With Quote
  #8  
Old May 4th, 2013, 03:12 AM
inaxsma inaxsma is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2013
Posts: 2 inaxsma User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 m 34 sec
Reputation Power: 0
Minor correction to my last posting - See the script below for the
correct object reference syntax for the SUBMIT method!

Reply With Quote
  #9  
Old May 4th, 2013, 10:55 PM
Daniel616 Daniel616 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2013
Posts: 3 Daniel616 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 m 32 sec
Reputation Power: 0
just tell me about how we can compare two text-box that if both are same then go ahead otherwise errorURLURLURLURL

Reply With Quote
  #10  
Old August 23rd, 2013, 12:03 AM
Mictjhelle Mictjhelle is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2013
Posts: 2 Mictjhelle User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 m 57 sec
Reputation Power: 0
Or after the specified time.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingASP Development > How I can auto submit form?


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.

© 2003-2014 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap