opstabom Posted August 15, 2009 Share Posted August 15, 2009 I have to load page from remote server into iframe.Page contains html form and i have to get this form when submited to mysql baze on my server.and to submit to remote server.I used curl to get form paremters load iframe and then to change action method to my server where i get form data save data to mysql base and post data to remote server.And I must set tracking pixel how and what is tracking pixel.My javascript code looks like : <script type="text/javascript"> <?php echo "var id='".$niz['id']."';"; echo "\r"; ?> alert(""); var page=window.frames['page']; var form=page.document.getElementById(id); form.action="<?php echo HOST."save.php"; ?>"; </script> When I remove alert from page script dont works when i return alert("") script works what is problem. Quote Link to comment https://forums.phpfreaks.com/topic/170406-iframe/ Share on other sites More sharing options...
phorman Posted August 16, 2009 Share Posted August 16, 2009 I am not sure you can do this, this is a SERIOUS SECURITY BREACH if you can, as many well known payment gateways claim that if you iFrame to them, then customers information they enter is secure. This instills confidence to the customer to continue with the order. You may not be trying to do this, but its for this reason that I think the browsers will not let you submit form to two places. As for a tracking pixel, or pixie, its a piece of code given to you by the tracker. Some tracking pixels are javascript code, while others is a image link. You will need to contact the person who hired you for the specific tracking pixel. An example of a pixel would be: <img src="www.cj.com?id=feASEsdgsd"> Quote Link to comment https://forums.phpfreaks.com/topic/170406-iframe/#findComment-899230 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.