Jump to content

first load js and form


yosii

Recommended Posts

<html>
<head>

</head>
<body>
BLA BLA BLA BLA BLA BLA BLA BLA V BLA BLA
<img src='a.gif' />
<img src='e.gif' />
<img src='vv.gif' />
<img src='ff.gif' />









<form id="a1" action="5.php" method="post" >
<INPUT TYPE="hidden" value="111111" NAME="name" >
<INPUT TYPE="hidden" value="22222" NAME="add" >

</form>
<script>
document.getElementById('a1').submit()
</script>















BLA BLA BLA BLA BLA BLA BLA BLA V BLA BLA
<img src='f.gif' />
<img src='1.gif' />
<img src='3.gif' />
<img src='6.gif' />

BLA BLA BLA BLA BLA BLA BLA BLA V BLA BLA
<form id="a2" action="5.php" method="post" >
<INPUT TYPE="hidden" value="xxx1" NAME="name" >
<INPUT TYPE="hidden" value="22222" NAME="add" >

</form>
</body>
</html>

 

ass you see there is lot of image text and forms

there is function in js that make the form(a1) that it auto send ....

hoe can i do that the form +js function load first

and all of the images and txt the the another forms not be load

how?

thank

Link to comment
Share on other sites

Yup cyberRobot I think has got your problem spot on. I just read your first post again and I think that's what you will want.

 

Not sure why you have 2 forms, with the 2nd only containing hidden fields? You could just put your hidden fields within your a1 form so that you can retrieve the values on a server-side script(if that was the plan). I don't think you will be able to retrieve those hidden values from your a2 form.

 

Kind regards,

 

L2c.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.