Rianna Posted June 13, 2006 Share Posted June 13, 2006 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 Quote Link to comment https://forums.phpfreaks.com/topic/11854-how-to-specify-size-of-error-and-thankyou-pages-with-php-please/ Share on other sites More sharing options...
joquius Posted June 13, 2006 Share Posted June 13, 2006 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? Quote Link to comment https://forums.phpfreaks.com/topic/11854-how-to-specify-size-of-error-and-thankyou-pages-with-php-please/#findComment-44949 Share on other sites More sharing options...
Rianna Posted June 14, 2006 Author Share Posted June 14, 2006 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! Quote Link to comment https://forums.phpfreaks.com/topic/11854-how-to-specify-size-of-error-and-thankyou-pages-with-php-please/#findComment-45296 Share on other sites More sharing options...
poirot Posted June 14, 2006 Share Posted June 14, 2006 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] Quote Link to comment https://forums.phpfreaks.com/topic/11854-how-to-specify-size-of-error-and-thankyou-pages-with-php-please/#findComment-45303 Share on other sites More sharing options...
Rianna Posted June 14, 2006 Author Share Posted June 14, 2006 Thanks, you can use javascript inside your php code? Jen Quote Link to comment https://forums.phpfreaks.com/topic/11854-how-to-specify-size-of-error-and-thankyou-pages-with-php-please/#findComment-45305 Share on other sites More sharing options...
poirot Posted June 14, 2006 Share Posted June 14, 2006 [!--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. Quote Link to comment https://forums.phpfreaks.com/topic/11854-how-to-specify-size-of-error-and-thankyou-pages-with-php-please/#findComment-45307 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.