Jump to content

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

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.