Jump to content

Simple Form help !!!


jamiefoxx

Recommended Posts

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>

 

 

Link to comment
https://forums.phpfreaks.com/topic/85036-simple-form-help/#findComment-433659
Share on other sites

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>

 

Link to comment
https://forums.phpfreaks.com/topic/85036-simple-form-help/#findComment-433697
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.