Jump to content

Trying to get the variable from a form "post"


randini

Recommended Posts

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.

Link to comment
Share on other sites

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.   Paste as plain text instead

  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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated