View Full Version : Centred page after form is completed

11-28-2004, 08:37 AM
After a user has completed a form, I want a 'Thanks for your enquiry' page to open. The code below does this but can I customise it so that I can have the page CENTRED with specific dimensions and no scroll bar!

Thank you

<input type="hidden" name="redirect" value="http://www.mySite.com/thanks.htm">

11-28-2004, 08:41 AM
Naughty double poster. No biscuits for you.

If this function can call javascripts in (i.e set value="javascript:alert('hello')" and see if you get a message box), then you can select one of many popup window makers avaliable on dynamic drive and we'll guide you through it.


11-28-2004, 04:40 PM
Thank you Mr Cr3ative.
I should be forever starved of biscuits for double-posting, show no mercy!
I have code for opening the window with specific dimension but from a link, so how would it work with the script above??
The code for the link I used is shown below!
Thank you wise one.

<a href="form.htm" onclick="NewWindow(this.href,'name','784','608','no');return false">Enquiry Form</a>

11-28-2004, 05:47 PM
Ah, go on then. *passes jaffa cake*

I'm pretty much coding blind, so I've not a clue if this'll work...
If you can, send me the code so far.

<input type="hidden" name="redirect" value="javascript:NewWindow('http://url','name','784','608','no');return false">


11-29-2004, 11:34 AM
<input type="hidden" name="subject" value="Website Enquiry">
<input type="hidden" name="redirect" value="http://www.mypage.com/thanks.htm">

This is the code goes to "thanks.htm" that opens up in the main browser.
The form that this code is in is a NEW WINDOW, so I then want it to close itself (which it does already) the for a small window to open saying "Thanks for your enquiry".

Many thanks,
Starved One.