Jump to content
Updating IPB tonight Read more... ×

Archived

This topic is now archived and is closed to further replies.

Rianna

How to specify size of error and thankyou pages with php please.

Recommended Posts

Hi, what is the code to specify the new page size of our error and thank you pages for our php form?

Mine are so small, I would like to put them in a small window. Thank you very much! Jen

Share this post


Link to post
Share on other sites
Please be more specific, are you trying to open new windows (size specific) which is done in js or do you want to resize errors or text?

Share this post


Link to post
Share on other sites
Sure, for instance this is what is says it the php part of my form.
_____________________________________________________

$errorurl = "http://www.mywebsite/error.html" ;
$thankyouurl = "http://www.mywebsite/thankyou.html" ;

if (empty($email) || empty($fastmail)) {

header( "Location: $errorurl" );

exit ;

header( "Location: $thankyouurl" );
_____________________________________________________

What code can I add to this to make the error thank you pages open in a new browser window. And also to open in sizes I can specify? Thanks a lot!

Share this post


Link to post
Share on other sites
For that, use javascript's window.open:

[a href=\"http://www.devguru.com/Technologies/ecmaScript/quickref/win_open.html\" target=\"_blank\"]http://www.devguru.com/Technologies/ecmaSc...f/win_open.html[/a]

Share this post


Link to post
Share on other sites
[!--quoteo(post=383559:date=Jun 13 2006, 05:59 PM:name=1Jen)--][div class=\'quotetop\']QUOTE(1Jen @ Jun 13 2006, 05:59 PM) [snapback]383559[/snapback][/div][div class=\'quotemain\'][!--quotec--]
Thanks, you can use javascript inside your php code? Jen
[/quote]
Yes.

PHP merely echos out HTML, so anything you can use in HTML, you can use preprocess it using PHP.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.