| | |
download, install & redirect
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
Hi,
N00b in need for some help
I would like to do this: our affiliate inputs an url of his choice and submits. The script gives him our app with his affID embeded in it. When his visitor installs this app, he is redirected to url, which was submitted before.
Here is my Js code so far, but I am not good in php, so how to create that (download.php) code to pass affID and url redir? Pls, help!
N00b in need for some help
I would like to do this: our affiliate inputs an url of his choice and submits. The script gives him our app with his affID embeded in it. When his visitor installs this app, he is redirected to url, which was submitted before.
Here is my Js code so far, but I am not good in php, so how to create that (download.php) code to pass affID and url redir? Pls, help!
PHP Syntax (Toggle Plain Text)
<TABLE cellPadding=10 width='555' border=0 style='border-collapse: collapse' bordercolor='#111111' cellspacing='0' align=center> <TR> <TD width='635'> <script> function update(){ var yourcontent = document.getElementById('yourcontentid').value; if(!yourcontent) { alert('you have to enter a valid content url'); return false; } var url = 'http://sub.domain.com/download.php?affID=<?php echo urlencode($_POST['affID']); ?>">&content='+yourcontent; var dl = document.getElementById('downloadid'); dl.src = url; } </script> <iframe src='' id='downloadid' width=0 height=0></iframe> <TABLE cellSpacing=0 cellPadding=5 width='622' border=1 height='137'> <TBODY> <TR bgColor=#cccccc> <TD height='1' width='608'> Protect your own content<BR> <span class='text'><b> <span lang='bg'>Type </span>: </b>YourContent<b></TD></TR> <TR> <TD height='120' width='608'> Your content url:<input id='yourcontentid' type='test' name='yourcontent'><br><Br> <input type='button' value='Download Your Content exe' onclick='javascript:update();'> <BR><BR> You can fill in any url you like to protect like a movie or a website, for example 'http://www.yoursite.com/content/' or 'http://www.yoursite.com/movies/movie.mpg'<BR><BR> The exe will install Xposio and redirect to the url of your choice.<br> You can make as many content executables as you wish. <BR></TD></TR></TBODY></TABLE>
If you think you are the smartest, you definetly are not. But you can strive to be one. Cashwizz Affiliate network
![]() |
Similar Threads
- IE Redirect & Windows Explorer Problem (Viruses, Spyware and other Nasties)
- Trojan Messed up My Networking & Registry (Networking Hardware Configuration)
Other Threads in the PHP Forum
- Previous Thread: defining sql query as function
- Next Thread: query executes and return correct value but cudnt save one value into db
Views: 288 | Replies: 0
| Thread Tools | Search this Thread |
Tag cloud for PHP
.htaccess access address ajax apache api array autoincrement beginner binary broken cakephp checkbox class cms code cron curl database date dehasher directory display download dynamic echo email error file files folder form forms function functions google href htaccess html image include insert integration ip java javascript joomla jquery limit link login loop mail menu method methods mlm mod_rewrite multiple mysql oop parse paypal pdf php problem query radio random recursion regex remote script search select server sessions sms soap source space speed sql structure support! syntax system table tutorial update updates upload url validation validator variable video web xml youtube





