Note that there are some explanatory texts on larger screens.

plurals
  1. POHow can I submit one form and then submit information to paypal for payment?
    primarykey
    data
    text
    <p>this is my first question here....</p> <p>So I run all IT related things for a local entertainment paper and ad business. We sell classified ads by the word both through mail from our paper and online. Before I came they would simply have people put they're ad info in, do they're OWN math and then tell us how much they owe, a hassle they shouldn't be going through. But what's worse is they would just enter in they're Credit Card info in a few input field which were then mailed to us when they submitted the form to our web hosts cgi system...... Terrible idea I know.</p> <p>So far i've completely redone the website with php and have my form looking nice and neat, it does all word counting/math for the customer and then copies the end amount due from readonly fields into my hidden "amount" variable for the paypal buy it now button (Obviously we want to use paypal to recieve payments now..). My problem is that the button submits a form with the needed information to paypal which brings up the buy it now screen with the new price, but my other form needs to be submitted and emailed to me at the same time they go to paypal, I don't need payment to be verified before I get the info I can just trash the ones that don't pay.</p> <p>Each form works perfectly when used independently, how can I have the info emailed to me and then submit another form to paypal so the price comes up? I'm new... but i have a great understanding of JS so if that's the solution, great. Any help will be greatly appreciated.</p> <p>In case it helps here is a link to the .php file containing the forms. I did remove the email and action information as well as our paypal business ID just because.... I don't want random forms submitted to our email and I don't want anything weird with paypal haha. Anyway heres the link <a href="http://www.whatzup.com/content/diningclub/classified.php" rel="nofollow">http://www.whatzup.com/content/diningclub/classified2.php</a></p> <p>My code is probably messy and unprofessional but I'm 17 and am learning as I go with this job and my boss knows that. With that in mind any pointers/tips on ANYTHING would be great. All the javascript in the top is either word counting stuff or something I was experimenting with trying to get this to work. I will put my final JS into it's own file and include it in the header like i did the math file.</p> <p><b>Edit:</b> I'm REALLY stumped here and if we can't get this to work I'll have to have the one form popup in a new window when they submit which tells them to go back to the other page and pay with Paypal... Which would be pathetically unprofessional.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload