I am new to ChronoForms but find them very helpful. I plan on getting a license if all goes well. I have a few questions.
First is how do you make a checkbox automatically insert a specific number into a textbox.
My application is that I am using this for a paypal donation. I have gotten things to complete the paypal process. But it doensn't send me a email with the proper amount. For everything is done in On Submit After email.
I have a check box with 3 selections, One Time, Automatic Monthly, Day Sponsor. If they select Day Sponsor I want it to automatically insert 20.00 into text_16. For the other selections they will be able to enter an amount.
I am posting my paypal code for those of you wanting to either allow a one time donation or a subscription donation. I am not a pro at PHP as you can see but it works, I just want it to change the amount before email so that I get the proper email. It would even be great to have a text box appear only if they select One Time or Automatic Monthly. If my PHP can be changed for speedier use then please assist.
Are they a manual on the use of the validation section?
Thanks for all your help in advance. I have searched the Forums.
First is how do you make a checkbox automatically insert a specific number into a textbox.
My application is that I am using this for a paypal donation. I have gotten things to complete the paypal process. But it doensn't send me a email with the proper amount. For everything is done in On Submit After email.
I have a check box with 3 selections, One Time, Automatic Monthly, Day Sponsor. If they select Day Sponsor I want it to automatically insert 20.00 into text_16. For the other selections they will be able to enter an amount.
I am posting my paypal code for those of you wanting to either allow a one time donation or a subscription donation. I am not a pro at PHP as you can see but it works, I just want it to change the amount before email so that I get the proper email. It would even be great to have a text box appear only if they select One Time or Automatic Monthly. If my PHP can be changed for speedier use then please assist.
<center>The information you have provided has been sent to the Pentecostal Voice of Truth Radio Network. But your donation has not been completed.
<br/>
<br/><br/>
Please complete your donation securely through PayPal using the link provided below. Again Thank You for your generous support of this station! <br />
<br />
<?php
if($_POST['check1']=="One Time")
{
$type = "_xclick";
$amt = "amount";
$dsamt = ($_POST["text_16"]);
}
elseif ($_POST['check1']=="Day Sponsor")
{
$type = "_xclick";
$amt = "amount";
$dsamt = "20.00";
}
else
{
$type = "_xclick-subscriptions";
$amt = "a3";
$dsamt = ($_POST["text_16"]);
}
?>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="<?php echo $type; ?>">
<input type="hidden" name="business" value="email@email.org">
<input type="hidden" name="item_name" value="<?php echo $_POST["check1"]; ?> Donation - <?php echo $_POST["text_0"]; ?> <?php echo $_POST["text_1"]; ?>">
<input type="hidden" name="<?php echo $amt; ?>" value="<?php echo $dsamt; ?>">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="p3" value="1">
<input type="hidden" name="t3" value="M">
<input type="hidden" name="src" value="1">
<input type="hidden" name="sra" value="1">
<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_donate_LG.gif" border="0" name="submit" alt="PayPal">
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form></center>
Are they a manual on the use of the validation section?
Thanks for all your help in advance. I have searched the Forums.