Jump to content


Photo

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


  • Please log in to reply
5 replies to this topic

#1 Rianna

Rianna
  • Members
  • PipPip
  • Member
  • 23 posts

Posted 13 June 2006 - 10:30 AM

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

#2 joquius

joquius
  • Members
  • PipPipPip
  • Advanced Member
  • 319 posts

Posted 13 June 2006 - 10:37 AM

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?
z..z..z..z..z..z..z..z..

#3 Rianna

Rianna
  • Members
  • PipPip
  • Member
  • 23 posts

Posted 14 June 2006 - 12:16 AM

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!



#4 poirot

poirot
  • Members
  • PipPipPip
  • Advanced Member
  • 646 posts
  • LocationAustin, TX

Posted 14 June 2006 - 12:37 AM

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]
~ D Kuang

#5 Rianna

Rianna
  • Members
  • PipPip
  • Member
  • 23 posts

Posted 14 June 2006 - 12:59 AM

Thanks, you can use javascript inside your php code? Jen

#6 poirot

poirot
  • Members
  • PipPipPip
  • Advanced Member
  • 646 posts
  • LocationAustin, TX

Posted 14 June 2006 - 01:03 AM

[!--quoteo(post=383559:date=Jun 13 2006, 05:59 PM:name=1Jen)--][div class=\'quotetop\']QUOTE(1Jen @ Jun 13 2006, 05:59 PM) View Post[/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.
~ D Kuang




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users