View Single Post
Old 2007-09-18, 03:17 AM   #3
virgohippy
Madness is like gravity. All it takes is a little... push.
 
virgohippy's Avatar
 
Join Date: Feb 2006
Location: California
Posts: 1,679
This should do the simple form/textbox process Llam4 described. Anything more would have to be set up by someone familiar with your existing script.

The form to get the CCBill ID:

Code:
<form name="form" method="post" action="page.php">
<input name="affiliate_ccbill_id" type="text">
<input name="submit" type="submit" value="Set ID">
</form>
The code to get the variable passed by the form:
Code:
<?php 
$affiliate_ccbill_id = (int)$_POST['affiliate_ccbill_id'];
if ($affiliate_ccbill_id==0) {
	$affiliate_ccbill_id = "XXXXX";
}
?>
__________________
~Warm and Fuzzy.
virgohippy is offline   Reply With Quote