Jump to content

trobarge

New Members
  • Posts

    3
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

trobarge's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. The following code was created using dreamweaver 8 and works in firefox but the values do not post in IE7. Any ideas way? The values I am referring to are af_id, dm_id, mpm_id, etc. <?php require_once('Connections/YRTW_conn.php'); ?> <?php if (!function_exists("GetSQLValueString")) { function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") { $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue; $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue); switch ($theType) { case "text": $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL"; break; case "long": case "int": $theValue = ($theValue != "") ? intval($theValue) : "NULL"; break; case "double": $theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL"; break; case "date": $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL"; break; case "defined": $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue; break; } return $theValue; } } $editFormAction = $_SERVER['PHP_SELF']; if (isset($_SERVER['QUERY_STRING'])) { $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']); } if ((isset($_POST["MM_update"])) && ($_POST["MM_update"] == "dm_id")) { $updateSQL = sprintf("UPDATE ews_affiliates SET dm_id=%s WHERE af_id=%s", GetSQLValueString($_POST['dm_id'], "text"), GetSQLValueString($_POST['af_id'], "int")); mysql_select_db($database_YRTW_conn, $YRTW_conn); $Result1 = mysql_query($updateSQL, $YRTW_conn) or die(mysql_error()); $updateGoTo = "programs.php#DirectMatches"; } if ((isset($_POST["MM_update"])) && ($_POST["MM_update"] == "mpm_id")) { $updateSQL = sprintf("UPDATE ews_affiliates SET mpm_id=%s WHERE af_id=%s", GetSQLValueString($_POST['mpm_id'], "text"), GetSQLValueString($_POST['af_id'], "int")); mysql_select_db($database_YRTW_conn, $YRTW_conn); $Result1 = mysql_query($updateSQL, $YRTW_conn) or die(mysql_error()); $updateGoTo = "programs.php#MPM"; } if ((isset($_POST["MM_update"])) && ($_POST["MM_update"] == "sfi_id")) { $updateSQL = sprintf("UPDATE ews_affiliates SET sfi_id=%s WHERE af_id=%s", GetSQLValueString($_POST['sfi_id'], "text"), GetSQLValueString($_POST['af_id'], "int")); mysql_select_db($database_YRTW_conn, $YRTW_conn); $Result1 = mysql_query($updateSQL, $YRTW_conn) or die(mysql_error()); $updateGoTo = "programs.php#SFI"; } if ((isset($_POST["MM_update"])) && ($_POST["MM_update"] == "hit_id")) { $updateSQL = sprintf("UPDATE ews_affiliates SET hit_id=%s WHERE af_id=%s", GetSQLValueString($_POST['hit_id'], "text"), GetSQLValueString($_POST['af_id'], "int")); mysql_select_db($database_YRTW_conn, $YRTW_conn); $Result1 = mysql_query($updateSQL, $YRTW_conn) or die(mysql_error()); $updateGoTo = "programs.php#hit"; } if ((isset($_POST["MM_update"])) && ($_POST["MM_update"] == "am_id")) { $updateSQL = sprintf("UPDATE ews_affiliates SET am_id=%s WHERE af_id=%s", GetSQLValueString($_POST['am_id'], "text"), GetSQLValueString($_POST['af_id'], "int")); mysql_select_db($database_YRTW_conn, $YRTW_conn); $Result1 = mysql_query($updateSQL, $YRTW_conn) or die(mysql_error()); $updateGoTo = "programs.php#adm"; } if ((isset($_POST["MM_update"])) && ($_POST["MM_update"] == "nc_id")) { $updateSQL = sprintf("UPDATE ews_affiliates SET nc_id=%s WHERE af_id=%s", GetSQLValueString($_POST['nc_id'], "text"), GetSQLValueString($_POST['af_id'], "int")); mysql_select_db($database_YRTW_conn, $YRTW_conn); $Result1 = mysql_query($updateSQL, $YRTW_conn) or die(mysql_error()); $updateGoTo = "programs.php#newbie"; } if ((isset($_POST["MM_update"])) && ($_POST["MM_update"] == "spm_id")) { $updateSQL = sprintf("UPDATE ews_affiliates SET spm_id=%s WHERE af_id=%s", GetSQLValueString($_POST['spm_id'], "text"), GetSQLValueString($_POST['af_id'], "int")); mysql_select_db($database_YRTW_conn, $YRTW_conn); $Result1 = mysql_query($updateSQL, $YRTW_conn) or die(mysql_error()); $updateGoTo = "programs.php#SPM"; } $colname_programs = "-1"; if (isset($_COOKIE['af_id'])) { $colname_programs = (get_magic_quotes_gpc()) ? $_COOKIE['af_id'] : addslashes($_COOKIE['af_id']); } mysql_select_db($database_YRTW_conn, $YRTW_conn); $query_programs = sprintf("SELECT af_id, dm_id, mpm_id, sfi_id, hit_id, am_id, nc_id, spm_id FROM ews_affiliates WHERE af_id = %s", GetSQLValueString($colname_programs, "int")); $programs = mysql_query($query_programs, $YRTW_conn) or die(mysql_error()); $row_programs = mysql_fetch_assoc($programs); $totalRows_programs = mysql_num_rows($programs); ?> <html> <head> <title>Your Road To Wealth</title> <meta name=description content=Free Affiliate Program.> <meta name=keywords content=free,affilieate,mlm> </head> <font face=Tahoma, Verdana> <body leftmargin=2 rightmargin=2 topmargin=2 bottommargin=2 bgcolor=#31b5d6 text=#0000000 link=#0000FF vlink=#006600 alink=#ffffff> <center> <table width=1100 bordercolor=#000000 bgcolor=#94d6e7 cellspacing=0 cellpadding=0 border=1> <tr><!-- Row 1 --> <td colspan=2 align=center><img alt=Your road to wealth src=img/header.jpg height=100 width=1100 /></td> </tr> <tr><!-- Row --> <td valign=top align=center width=200 bgcolor=#0084a5> <br> <table width=100% bordercolor=#7D7D7D bgcolor=#0084a5 cellspacing=0 cellpadding=0 border=1> <tr><!-- Row --> <td valign=top align=center bordercolordark=000000> <font size=3 color=#ff0000><b>MENU</b></font> <table width=80% bordercolor=#505050 bgcolor=#0084a5 cellspacing=0 cellpadding=0 border=1> <tr><!-- Row --> <td bordercolorlight=808080 bordercolordark=000000><font color=#ff0000 size=2>></font> <a href=main.php onFocus=this.blur()><font size=2><b>Home</b></font></a></td> </tr> <tr><!-- Row --> <td bordercolorlight=808080 bordercolordark=000000><font color=#ff0000 size=2>></font> <a href=articles.php onFocus=this.blur()><font size=2><b>Articles</b></font></a></td> </tr> <tr><!-- Row --> <td bordercolorlight=808080 bordercolordark=000000><font color=#ff0000 size=2>></font> <a href=ebooks.php onFocus=this.blur()><font size=2><b>E-Books</b></font></a></td> </tr> <tr><!-- Row --> <td bordercolorlight=808080 bordercolordark=000000><font color=#ff0000 size=2>></font> <a href=audio.php onFocus=this.blur()><font size=2><b>Audio Files</b></font></a></td> </tr> <tr><!-- Row --> <td bordercolorlight=808080 bordercolordark=000000><font color=#ff0000 size=2>></font> <a href=resources.php onFocus=this.blur()><font size=2><b>Resources</b></font></a></td> </tr> <tr><!-- Row --> <td bordercolorlight=808080 bordercolordark=000000><font color=#ff0000 size=2>></font> <a href=bonus.php onFocus=this.blur()><font size=2><b>Bonuses</b></font></a></td> </tr> <tr><!-- Services --> <td bgcolor=#0084a5><center><font size=3 color=#ff0000><b>SERVICES</b></font></center></td> </tr> <tr><!-- Row --> <td bordercolorlight=808080 bordercolordark=000000><font color=#ff0000 size=2>></font> <a href=programs.php onFocus=this.blur()><font size=2><b>Programs</b></font></a></td> </tr> <tr><!-- Row --> <td bordercolorlight=808080 bordercolordark=000000><font color=#ff0000 size=2>></font> <a href=train.php onFocus=this.blur()><font size=2><b>Training</b></font></a></td> </tr> <tr><!-- Row --> <td bordercolorlight=808080 bordercolordark=000000><font color=#ff0000 size=2>></font> <a href=Affiliates.php onFocus=this.blur()><font size=2><b>Return To Stats</b></font></a></td> </tr> </table> <br></td> </tr> </table><br> </td> <td width=900> <p> <h1 align=center>Programs</h1> <p>All these programs are free to join. To join just click on <font color=#3300FF>Click Here</font> The program will open in a new window. Once you have completed the sign-up process and have your User ID. Close the window and enter your ID in the box and Submit. To insure you have entered the correct ID. Click on the Click Here next to To Test. You can update your User ID by entering your ID in the box and Submit. <p><font color=#FF0000 size=3><strong><em>Please Note: If you already belong to one or more of the programs listed. You may use your current Program ID</em></strong> </font> <form action="<?php echo $editFormAction; ?>" name="dm_id" method="POST"> <a name="DirectMatches"></a> <table width=95% border=2 cellpadding=3 cellspacing=5 id="dm_id"> <tr> <td><h2 class=style1>Direct Matches </h2></td> </tr> <tr> <td><ul> DirectMatches' robust social networking service offers a wide range of features, to include a comprehensive profile, photo posts, audio and video uploads, community email, community message boards, web-based real time chat and instant messaging, along with quick and detailed member match search engines. Free to join, can set-up a free profile. Upgarde to earn income. See site for details. </ul> <p align=center> <input name="af_id" type="hidden" id="af_id" value="<?php echo $row_programs['af_id']; ?>"> To Join <a href="http://www.directmatches.com/quickreg/<?php echo $row_programs['dm_id']; ?>" target=_blank>Click Here</a> Enter Your User ID <input name="dm_id" type="text" id="dm_id"> <input name="dm_id2" type="submit" id="dm_id2" value="Update"> To Test <a href="http://www.directmatches.com/quickreg/<?php echo $row_programs['dm_id']; ?>" target=_blank>Click Here</a><br> </td> </tr> </table> <input type="hidden" name="MM_update" value="dm_id"> </form> <a name="MPM"></a> <form action="<?php echo $editFormAction; ?>" name="mpm_id" method="POST"> <table width="95%" border="2" cellpadding="3" cellspacing="5" id="mpm_id"> <tr> <td><h2 class=style1>My Power Mall</h2></td> </tr> <tr> <td> <ul>Let’s hit the high points first:</ul> <ul> <li> MY POWER MALL really is FREE. There’s no upfront or monthly cost to you – EVER.</li> <li>There’s nothing to SELL. All you have to do is shop in any one of 1000+ stores on your own Mall, or purchase from one of our Local Merchants in your community and buy whatever you and your family need and want.</li> <li>There are none of those crazy qualifying games to receive your income. All you have to do to keep your Mall is make just one purchase a month – something you were going to buy anyway! There is no minimum purchase amount – we just ask you to use your Mall and make at least one purchase! How simple is that??</li> <li>There are no meetings. People already know how to shop!</li> <li>Your tools are FREE. We give you everything you need to succeed.</li> </ul> <p align=center> <input name="af_id" type="hidden" value="<?php echo $row_programs['af_id']; ?>"> To Join <a href="http://www.mypowermall.com/Biz/Home/<?php echo $row_programs['mpm_id']; ?>" target=_blank>Click Here</a> Enter Your User ID <input name="mpm_id" type="text" id="mpm_id"> <input name="mpm_id2" type="submit" id="mpm_id2" value="Update"> To Test <a href="http://www.mypowermall.com/Biz/Home/<?php echo $row_programs['mpm_id']; ?>" target=_blank>Click Here</a><br> </p> </td> </tr> </table> <input type="hidden" name="MM_update" value="mpm_id"> </form> <a name="SFI"></a> <form action="<?php echo $editFormAction; ?>" method="POST" name="sfi_id"> <table width="95%" border="2" cellpadding="3" cellspacing="5" id="sfi_id"> <tr> <td class=style1><h2>SFI</h2></td> </tr> <tr> <td><ul> <p>SFI is totally FREE for affiliates to join. And there's absolutely NO OBLIGATION. SFI provides you with FREE Websites, a FREE course that teaches you everything you need to know to make money online ($295 value), and hundreds of exciting products to stock your online store shelves with. </p> <p>Plus, SFI takes care of all orders, product shipments, and customer service for you. <em>You just have to cash the commission checks!</ul> <p align=center> <input name="af_id" type="hidden" id="af_id" value="<?php echo $row_programs['af_id']; ?>"> To Join <a href="https://www.moreinfo247.com/<?php echo $row_programs['sfi_id']; ?>/FREE" target=_blank>Click Here</a> Enter Your User ID <input name="sfi_id" type="text" id="sfi_id"> <input name="sfi_id2" type="submit" id="sfi_id2" value="Update"> To Test <a href="https://www.moreinfo247.com/<?php echo $row_programs['sfi_id']; ?>/FREE" target=_blank>Click Here</a><br> </p></td> </tr> </table> <input type="hidden" name="MM_update" value="sfi_id"> </form> <a name="hit"></a> <form action="<?php echo $editFormAction; ?>" method="POST" name="hit_id"> <table width="95%" border="2" cellpadding="3" cellspacing="5" id="hit_id"> <tr> <td><h2 class=style1>Home-Income-Team</h2></td> </tr> <tr> <td><ul> <li>Affiliate Training System - learn the <em>correct</em> ways to make money as an internet marketing affiliate!</li> <li>Backend Income - earn commissions on our one time offer and other Home-Income-Team.com products!</li> <li>Unique Autopromotion and Downline Building System - get sales and signups whenever we send OUR follow up emails and newsletters to YOUR personal subscribers! </li> <li>Home Income Website Builder - we build - you your very own money making website!</li> <li>Home-Income-Team.com <a href=http://www.home-income-team.com/forum target=_blank>Member Forum</a> - get help, advise and support from some of the internet's most successful work from home online marketers!</p></li> </ul> <p align=center> <input name="af_id" type="hidden" id="af_id" value="<?php echo $row_programs['af_id']; ?>"> To Join <a href="http://www.home-income-team.com/info/<?php echo $row_programs['hit_id']; ?>" target=_blank>Click Here</a> Enter Your User ID <input name="hit_id" type="text" id="hit_id"> <input name="hit_id2" type="submit" id="hit_id2" value="Update"> To Test <a href="http://www.home-income-team.com/info/<?php echo $row_programs['hit_id']; ?>" target=_blank>Click Here</a><br> </p> </td> </tr> </table> <input type="hidden" name="MM_update" value="hit_id"> </form> <a name="adm"></a> <form action="<?php echo $editFormAction; ?>" method="POST" name="am_id"> <table width="95%" border="2" cellpadding="3" cellspacing="5" id="am_id"> <tr> <td><h2 class=style1>Ad Minder </h2></td> </tr> <tr> <td> <p>Sure there are a lot of affiliate programs that you can join these days, but very few offer you a real opportunity to make some serious money. The simple fact of the matter is that with most Affiliate opportunities the deck is stacked against you due to the lack of one or more of the following: </ul> </p> <ul> <li>a <strong>proven product</strong> with a <strong>huge and expanding market</strong> </li> <li>a <strong>professional sales process</strong> that <strong>converts visitors into customers</strong> </li> <li>a <strong>bullet-proof</strong> and <strong>fair tracking system</strong> that ensures you get paid </li> <li>a <strong>multi-tier residual commission</strong> structure and <strong>lifetime customers</strong> </li> <li>a <strong>dedicated support team</strong> and all the <strong>tools and resources</strong> you need </li> </ul> <ul>But the AdMinder Affiliate Program has it all, not to mention a fully-developed Affiliate Support Center and dedicated Affiliate Support Team to help you maximize your affiliate income. So if you're sick of receiving tiny checks from other programs, give ours a try. If you're anything like most of our other affiliates you'll soon be dropping the rest and focusing primarily on AdMinder. </ul> <p align=center> <input name="af_id" type="hidden" id="af_id" value="<?php echo $row_programs['af_id']; ?>"> To Join <a href="http://www.adminder.com/go.cgi?id=<?php echo $row_programs['am_id']; ?>&page=aff" target=_blank>Click Here</a> Enter Your User ID <input name="am_id" type="text" id="am_id"> <input name="am_id2" type="submit" id="am_id2" value="Update"> To Test <a href="http://www.adminder.com/go.cgi?id=<?php echo $row_programs['am_id']; ?>&page=aff" target=_blank>Click Here</a><br> </p> </td> </tr> </table> <input type="hidden" name="MM_update" value="am_id"> </form> <a name="newbie"></a> <form action="<?php echo $editFormAction; ?>" method="POST" name="nc_id"> <input name="af_id" type="hidden" value="$af_id"> <table width="95%" border="2" cellpadding="3" cellspacing="5" id="nc_id"> <tr> <td><h2 class=style1> Newbie Club</h2></td> </tr> <tr> <td><ul> <strong>The Newbie Club™ Affiliate Program</strong><br> The Newbie Club is a great business, and our Affiliate Program is the driving force behind it. That's why we're committed to devoting a substantial amount of our efforts and resources into maintaining our reputation for running one of the best supported and most professional Affiliate Programs on the Web.</p> <p><strong>Benefits Of Being A Newbie Club</strong>™<strong> Affiliate</strong> </p> <p align=left><strong> 2 Tier Program</strong><br> The Newbie Club Affiliate Program is a 2 Tier System.<br> This means that as an Affiliate you are paid <strong>35%</strong> commission on your own sales and <strong>10%</strong> on sales made by Affiliates who sign up under you.</ul> <p align=center> <input name="af_id" type="hidden" id="af_id" value="<?php echo $row_programs['af_id']; ?>"> To Join <a href="http://www.newbieclub.com/?<?php echo $row_programs['nc_id']; ?>" target="_blank">Click Here</a> Enter Your User ID <input name="nc_id" type="text" id="nc_id"> <input name="mc_id2" type="submit" id="mc_id2" value="Update"> To Test <a href="http://www.newbieclub.com/?<?php echo $row_programs['nc_id']; ?>"target="_blank">Click Here</a><br> </p></td> </tr> </table> <input type="hidden" name="MM_update" value="nc_id"> </form> <a name="SPM"></a> <form action="<?php echo $editFormAction; ?>" method="POST" name="spm_id"> <table width="95%" border="2" cellpadding="3" cellspacing="5" id="spm_id"> <tr> <a name="spm"></a> <td><h2 class=style1>Silent Profit Machine </h2></td> </tr> <tr> <td><h2 align=center>Here are just some of the benefits of Silent Profit Machine:</h2> <ul> <li>The system is absolutely Free. You are not required to spend a penny, now or later!</li> <li> It's not something you have ever seen or heard of before.</li> <li> You can get started right away.</li> <li> You don't need a website or a list to use the system.</li> <li> Using this system, you will lock for yourself a steady stream of long term profits.</li> <li> It's a very simple system. Anyone, even without any computer or technical knowledge, can get started right away</li> <li> All you have to do is refer people to this Free Report. And the system takes care of the rest.</li> <li> The Free Report will also teach you five cool tricks to generate referrals & increase your income at your own will. </li> <li> I do all the work. You just sit back, relax & watch the cash pile up.</li></ul> <p align=center> <input name="af_id" type="hidden" value="<?php echo $row_programs['af_id']; ?>"> To Join <a href="http://www.silentprofitmachine.com/?affid=<?php echo $row_programs['spm_id']; ?>" target="_blank" >Click Here</a> Enter Your User ID <input name="spm_id" type="text" id="spm_id"> <input name="spm_id2" type="submit" id="spm_id2" value="Update"> To Test <a href="http://www.silentprofitmachine.com/?affid=<?php echo $row_programs['spm_id']; ?>" target="_blank">Click Here</a> </td> </tr> </table> <input type="hidden" name="MM_update" value="spm_id"> </form></td> </tr> </table> <br> </td></tr></table> </td> </tr> </table> <!-- Change the following to reflect your own information. The link to Free Site Templates.com would be appreciated but not required. --> <font size=1 color=white>© Copyright 2008. All rights reserved. Contact: <A HREF=mailto:admin@yourroadtowealth.biz><font color=red>Your Road To Wealth</font></A> Powered by <a href=http://freesitetemplates.com/><i><font size=1 color=red>Free Site Templates</font></i></a></font> </center> </body> </html> <?php mysql_free_result($programs); ?> (edited by kenrbnsn to add tags)
  2. Here how I think it can be done. (newbe to PHP) On the sign-up screen do a qry to the referrers information and insert it into the program table under the new affiliates id. Then on the program page after the new affiliate joins the referrer program they can insert the information into the form and post their new ID into the program table. I will be using urls that need to be updated. example:www.abccomany.com/index.php?referid I will just be update the referid. Or should I try to all the the program page and insert the information for the new affiliate after he updates his information. Thanks Tom
  3. I am working on a new website and referring people to affiliate programs. So I need the ability to have users update their affiliate links once they have joined so that people they refer to these affiliate programs are signed up under the referee. Thank Tom
×
×
  • 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.