ok you want something like:
Put this at the top of your page:
Code:
<?php session_start(); #<-- Must be first line
if(!empty($_POST['id'])){$_SESSION['affid'] = $_POST['id'];} #<-- Sets the affiliate id
{$affid = $_SESSION['affid'];} #<-- assign affiliate id
if(empty($_SESSION['affid'])){$affid = "xxxxxx";} #<-- add a default value
?>
when you have your input box have your form set like:
Code:
<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">
<input type="text" name="id" value="<?php echo $affid; ?>">
</form>
Then for each of your links just add the below code where ever you would like to have the affiliate id shown:
Code:
<?php echo $affid; ?>
Hope this helps, if you need any more help please feel free to e-mail me: rob [at] foxydrop [dot] com or reply here
Rob