Jump to content
Server Maintenance This Week. ×

submit onload


This topic is 8639 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies

I am trying to submit a form automaticly with an onload method (javascript) which is not working. The form by itself does and so does the onload method. However, together they don't work. Why doesn't it work?. I am using File Maker Pro 4. Is this why? Can it work with FMPro 5?

<html><head>

<title>Counter</title>

<script>

<!--

function autoSub()

{

document.john.submit(true);

}

//-->

</script>

</head>

<body bgcolor="white" onload="autoSub()">

<form name="john" action="FMPro" method="POST">

<input type="hidden" name="-db" value="counter">

<!--<input type="hidden" name="-lay" value="Form View">//-->

<input type="hidden" name="-format" value="formats.htm">

<!--<input type="hidden" name="-error" value="errors.htm">//-->

<input type="submit" name="-new" value="add">

</form>

<h1 align= "center" >

<!--<a href="FMPro?-db=counter&-format=formats.htm&-new">//-->Add 1 to database</h1>

<hr>

<center><a href="http://www.kpgraphics.com/index.html">Go back to home page.</a></center>

</body>

</html>

[This message has been edited by john (edited September 11, 2000).]

[This message has been edited by john (edited September 11, 2000).]

Link to comment
Share on other sites

This topic is 8639 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.