Log in

View Full Version : Need help with HTML & Forms...



ade
19-12-04, 09:33 PM
Lo guys n gals,

Right I need help with a little HTML if you please.

I've just written a website for the wifes sister for her business and have incorperated an on line shop into it (all done by myself) - and it work fine, but there a bit that I'm stuck with.

Basically, theres a standard form that I'm using to submit the final order. On clicking the submit button, a new window opens up that loads Paypal so the customer can make a payment.

What I want the site to do is not only open the paypal site in a new window but change the existing order page (where the submit button is) into a thank you page.

Any ideas how I do this?

I know Paypal has a facility that can redirect you back to a page in your site but coz its opened in a new window it's no good - also the site is in frames so I cant load paypal into the site as the screens too small.

Any help greatly appreciated

Ade
:)

?Marty?
19-12-04, 10:02 PM
Not hundred percent sure what you mean, but i have had no sleep.

- You fill in the form on your website, and click submit.
- The submit button opens a new window, containing the Pay Pal form. With the filled in entries of the form transferred into their relevant entries on the Pay Pal form.

Which page do you want to change into the 'thank you page'? The page on your website that contains the submit button which launches the newwindow, and passes over the form entries? Or the 'submit' button on the Pay Pal form, loaded into the new window?

Jack
19-12-04, 10:13 PM
Have a look on here (http://www.htmlgoodies.com/tutors/2atonce.html) and try modifying that to open the Paypal page in a new window, and change the contents of the current window. I'm sure thats how I did it on a site I created a while back, although it was quite some time ago!

ade
19-12-04, 11:03 PM
cheeck guys,

Its actually simpler than this - I just realised I dont need to use a form so all i need is a biy of code that when I click on a button (a jpeg uimage) a new window opens for paypal and the page with the button on changes to a thank you page.

The 1st post related to a form - but I've just realised I dont have anything to imput coz paypal does it all for you - D'OH!

Ade