jamiefoxx Posted January 8, 2008 Share Posted January 8, 2008 I am trying to create this kind of form http://www.12monthinternetmillionaire.com/affiliate.php a user inserts their clickbank id and its generated in the field below....any pointers ? Quote Link to comment https://forums.phpfreaks.com/topic/85036-simple-form-help/ Share on other sites More sharing options...
revraz Posted January 8, 2008 Share Posted January 8, 2008 Take the variable and insert it into the output. Quote Link to comment https://forums.phpfreaks.com/topic/85036-simple-form-help/#findComment-433657 Share on other sites More sharing options...
jamiefoxx Posted January 8, 2008 Author Share Posted January 8, 2008 Am a php newbie....sory to sound helpless but can you point me in the direction ? i have this code : <div style="width: 400px; border: 1px #000000 solid; padding: 5px 5px 5px 5px; margin: auto;"> <form method="get" action="affiliate.php"><p>Enter Your ClickBank ID To Access Affiliate Tools</p> <p> <label>Clickbank ID: <input name="clickbankid" type="text" id="clickbankid" value="Enter Your ClickBank ID"/> </label> </p> <p> <label> <input type="submit" name="cbidupdate" id="cbidupdate" value="Update ClickBank ID" /> </label> </p> </form> Don't Have A ClickBank Id?<br /> <a href="http://weres.reseller.hop.clickbank.net/">Click Here To Get One.</a></div> <p> <strong style="font-weight: 400"><strong><font face="Verdana"> <span style="BACKGROUND-COLOR: #ffff00"><font size="2">Your Affiliate Link</font></span></font></strong><strong style="FONT-WEIGHT: 400"><font face="Verdana" size="2"><br> </font><font face="Verdana"> <input style="TEXT-ALIGN: center" size="68" value="http://Enter Your ClickBank ID.weres.hop.clickbank.net" name="T1"> </font></strong></strong></p> Quote Link to comment https://forums.phpfreaks.com/topic/85036-simple-form-help/#findComment-433659 Share on other sites More sharing options...
revraz Posted January 8, 2008 Share Posted January 8, 2008 Post affiliate.php Quote Link to comment https://forums.phpfreaks.com/topic/85036-simple-form-help/#findComment-433661 Share on other sites More sharing options...
jamiefoxx Posted January 8, 2008 Author Share Posted January 8, 2008 Where do i post that at ? something like this ? <form method="get" action="affiliate.php" post="affiliate.php" Quote Link to comment https://forums.phpfreaks.com/topic/85036-simple-form-help/#findComment-433679 Share on other sites More sharing options...
revraz Posted January 8, 2008 Share Posted January 8, 2008 Post the code like you did the HTML. Quote Link to comment https://forums.phpfreaks.com/topic/85036-simple-form-help/#findComment-433680 Share on other sites More sharing options...
simcoweb Posted January 8, 2008 Share Posted January 8, 2008 Open affiliate.php, copy and paste the code into your next post. Quote Link to comment https://forums.phpfreaks.com/topic/85036-simple-form-help/#findComment-433685 Share on other sites More sharing options...
jamiefoxx Posted January 8, 2008 Author Share Posted January 8, 2008 I used this and made it work guys...thanks... <? if($_POST['clickbank_id']) { $url = "http://".$_POST['clickbank_id'].".34jiuk.hop.clickbank.net"; } ?> <form method="post" action="<?=$_SERVER['PHP_SELF'];?>" /> ClickBank ID: <input type="text" name="clickbank_id" /><br /> <input type="submit" value="Update ClickBank ID" /> </form> <br /> <strong style="font-weight: 400"><strong><font face="Verdana"> <span style="BACKGROUND-COLOR: #ffff00"><font size="2">Your Affiliate Link</font></span></font></strong><strong style="FONT-WEIGHT: 400"><font face="Verdana" size="2"><br> </font><font face="Verdana"> <input type="text" value="<?=$url;?>" size="35" /> </font></strong></strong></p> Quote Link to comment https://forums.phpfreaks.com/topic/85036-simple-form-help/#findComment-433697 Share on other sites More sharing options...
revraz Posted January 8, 2008 Share Posted January 8, 2008 Right on, mark as solved please Quote Link to comment https://forums.phpfreaks.com/topic/85036-simple-form-help/#findComment-433707 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.