Jump to content

Recommended Posts

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.

Link to comment
https://forums.phpfreaks.com/topic/170406-iframe/
Share on other sites

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">

Link to comment
https://forums.phpfreaks.com/topic/170406-iframe/#findComment-899230
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.