I am creating an affiliates resources page just like this one:
http://daytradingrobot.com/inside-affiliates.php
You can see on the website that they have a text entry box and a submit button. The id is entered into the text box and when submit is clicked, all the hoplinks on the page are updated with the ID that was entered into the text box. This new ID is placed where "xxxxxxxx" was in all the links on the page.
http://xxxxxxxx.vendor.hop.clickbank.net/
This is a real time saver for the affiliate.
This almost works:
<form method="post" action="form.php">
<font size="5"><b><a linkindex="0" href="http://vendor.reseller.hop.clickbank.net" target="_blank">Clickbank</a> Username: </b></font><input size="12" maxlength="12" name="Clickbank_Nickname" type="text">
<input value="submit" name="submit" type="submit">
</form>
<?php
// form.php
if (isset($_POST['Clickbank_Nickname'])) {
echo $_POST['Clickbank_Nickname'];
}
?>
With the code above the submitted text is added to the page in the right place.
But as it is now, it displays no data at all until data is entered into the submit box and submitted.
That is it does not show xxxxxxxxx as the placeholder for a nick name. Just in case a newbie wants to manually change the xxxxxxxxx manually.
So how would I still be able to show xxxxxxxxx as the place holder until someone puts in their nickname and presses submit.
I am real grateful for your help here.