I need a script processing routine, possible in Perl or PHP, that will accept form input, email that input in a formatted way to a certain email address, and then pass selected parts of the input to PayPal for a donation.
## Deliverables
I need a form processing script,? possible in Perl or PHP, that will accept form input, email that input in a formatted way to a certain email address, and then pass selected parts of the input to PayPal for a donation.
This is for a non-profit organization to collect information on contributors and then pass them along to PayPal to finish the contribution. ? I don't want them to have to enter information twice -- so name, address, email, etc. that PayPal needs will be pre-populated, and some extra information that we need but that is not sent to PayPal will be kept just in the email.
The format of the form that we will use is here:
[[login to view URL]][1]?
I don't think that wufoo will actually host the form -- this is just to mock it up. ? I can download all the html, css, etc. that wufoo uses to generate this form, and that will save on time in recreating the form.
This is the general procedure:
- User clicks on a button in the website, which opens up the form.
- User fills out form, clicks on Submit
- Compose all form information into an email, and send to a designated email address.
- If user indicated an automatic donation each year, then go to the recurring payments page set up on PayPal
- If user indicated a one-time payment, then go to the donations page on PayPal
- When user is done with PayPal transaction, return to the main website.