randini Posted December 15, 2013 Share Posted December 15, 2013 Hello, I have a form that uses POST to send the contents of the name "paypal" to a php script. I can't get the php page to pick up the variable paypal. Here is what I have used... $paypal = $_POST['paypal']; //did not work $ca->assign('paypal', $paypal); // did not work Just in case it's not that and it's my way of inserting it into the database here is the code I am using for that... mysql_query("UPDATE tblclients SET paypal_email = $paypal WHERE id=".$ca->getUserID()); If someone could show me the code or point me to somewhere with instructions that would be great. Just so you have all the info, here is the line of code for the form.. <form class="form-horizontal" method="post" action="affiliate_user_save.php"> <fieldset class="control-group"> <div class="control-group"> <div class="col2half"> <div class="control-group"> <label class="control-label" for="paypal">PayPal Email:</label> <div class="controls"> <input type="text" name="paypal" id="paypal" value="{$paypal}" /> </div> </div> </fieldset> <input class="btn btn-primary" type="submit" name="save" value="{$LANG.clientareasavechanges}" /> </form> And if you have not figured it out by now lol, there is no way for an affiliate to put in their paypal email address so you can pay them. So I am trying to make it so they can enter that and it saves it in the database field I made named paypal_email . It could be that someone has already done this and I can just purchase the code from them, so if you know of a script that enhances the affiliate program, please let me know that as well. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.