473,394 Members | 1,742 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Post the form automatically

150 100+
i'm having form that have default values on it i need to post the form automatically how can i do that?
Aug 8 '07 #1
5 1716
ak1dnar
1,584 Expert 1GB
i'm having form that have default values on it i need to post the form automatically how can i do that?
When the page is loading you can submit your form with onload() event with.
By Adding this

Expand|Select|Wrap|Line Numbers
  1. <body onload="document.form_name.submit();">
Aug 8 '07 #2
smartic
150 100+
I tried your code but it didn't work with me and give me an error (Object dosn't support this property or method)
Aug 8 '07 #3
ak1dnar
1,584 Expert 1GB
I tried your code but it didn't work with me and give me an error (Object dosn't support this property or method)
Its a error with Java Script, Why dont you post the Code Here.
Aug 8 '07 #4
smartic
150 100+
Expand|Select|Wrap|Line Numbers
  1. <body onLoad="document.panel.submit();">
  2. <form action="any link" method="post" name="panel" id="panel">
  3. Username
  4. <input class="inputbox" type="text" name="uname" maxlength="40" value="user value">
  5. Password
  6. <input class="inputbox" type="password" name="passwd" maxlength="50" value="pass value">
  7. <input class="inputbox" type="submit" name="submit" value="Login">
  8. </form>
  9. </body>
Aug 8 '07 #5
ak1dnar
1,584 Expert 1GB
Please remove the submit button from the Form. It will work.
Thanks !
Aug 9 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

10
by: Dave Smithz | last post by:
Hi there, I have a situation where I want to have multiple submit buttons on the same form and therefore want to use a redirection php script that checks the value associated with the submit...
14
by: billy.becker | last post by:
I need to save a wav file that is HTTP POSTed to a php page. What does PHP5 do automatically to a POSTed variable when it puts it in the $_POST superglobal array? I haven't been able to find any...
0
by: Darrell G | last post by:
I am in need of some good advice ... Goal: I need to automatically log users of my website into a second website. Obstacles: The second website requires I "post" a form with specific...
3
by: Tim Wade | last post by:
Does anyone have any ideas on how to do an automatic html form post using hidden fields without introducing client-side script nor using a server-side WebRequest by passing the information back up...
3
by: Tom Donohue | last post by:
Hello All: I've got, what appears to be a simple problem, but am having a brain cramp on determining the best way to implement. Here is the requirement (I am using ASP.net v1.1) User enters...
6
by: Eagle Rock | last post by:
Hi all, This is probably a simple question, but I'm just getting started in ASP.NET, and I can't find the answer. I have a simple form with a "Submit" button. When the user clicks on the...
10
by: glenn | last post by:
I am use to programming in php and the way session and post vars are past from fields on one page through to the post page automatically where I can get to their values easily to write to a...
12
by: MadCrazyNewbie | last post by:
Hey Group, Sorry but i`ve been searching everywhere for this even went out and bought a ADO book and still carn`t find what im looking for:( I have the following code for my postion changed: ...
23
by: Bjorn | last post by:
Hi. Every time i post data in a form the contents are being checked for validity. When i click the back-button, all data is gone and i have to retype it. It's obvious that only a few or none of...
6
by: Mark B | last post by:
I have a function that looks up a SQL table to see if a search term matches. It works fine but so far there are two things yet to work: 1) After entering a search term and pressing Enter, nothing...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.