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
https://forums.phpfreaks.com/topic/274882-first-load-js-and-form/
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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.