Project / Support Center
Welcome, Guest. Please login or register. October 03, 2023, 05:23: AM
Home Help Search Login Register
D-Web Web Site Creator D - Web Web Site Creator On-line HTML Editor No Programming knowledge required. Web Global Net PayPal-Cart Shopping Cart System PayPal - Kart Shopping Cart System for E-Commerce over the internet, that's easy to use. Web Global Net Newsletter Manager Newsletter Manager On-line Newsletter Creator with Email Subscriber Management.
Ring Central Discount
Web Global Net Web Application & Web Development Project Center  |  Technical Issues  |  HTML Related Issues  |  Topic: submitting a form on pageload 0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Send this topic Print
Author Topic: submitting a form on pageload  (Read 8556 times)
admin
Guest
« on: October 25, 2010, 01:54: PM »

I had an issue where I needed to update 2 tables to mark them both as paid coming back from pay pal where I could not use the PayPal IPN process for various reasons and then wanted to return the user to their account page.

Although this solution may seem a bit clunky it worked for me.

What I did was create to update pages called pa_confirm_1.php & pay_confirm_2.php

For the url to go to on update for page 1 I sent it to page 2 and for page 2 sent it to the users account page which was based on a session variable. I assumed the session variable was valid because I sent the user to paypal via a new window which seems not to destroy the session needed and is still valid when the user clicks on the Return to Merchant Link shown after payment confirmation.

To accomplish this I used the <body onLoad="document.form1.submit()">

I did this because I did not want the user to have to click a submit button and I think it streamlines the process of confirming a payment better in the mysql tables.
Report to moderator   Logged
Pages: [1] Go Up Send this topic Print 
Web Global Net Web Application & Web Development Project Center  |  Technical Issues  |  HTML Related Issues  |  Topic: submitting a form on pageload « previous next »
Jump to:  


Login with username, password and session length
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!