Jump to content


Photo

New window using php ?


  • Please log in to reply
7 replies to this topic

#1 SnaD

SnaD
  • Members
  • PipPip
  • Member
  • 12 posts

Posted 30 June 2006 - 02:13 PM

Is there a way to open a new window without using JS?

#2 neugi

neugi
  • Members
  • PipPipPip
  • Advanced Member
  • 63 posts

Posted 30 June 2006 - 02:18 PM

you can use standart html ;)

<a href="URL" target="_blank">name</a>

target="_blank" will open the site in a new window

best

#3 SnaD

SnaD
  • Members
  • PipPip
  • Member
  • 12 posts

Posted 30 June 2006 - 02:52 PM

I know that, but it wont work for me. I need a new window to be opened after I submit my form.

#4 xyn

xyn
  • Members
  • PipPipPip
  • Advanced Member
  • 779 posts
  • LocationNorthampton

Posted 30 June 2006 - 02:57 PM

Should have made it a bit clearer at the beginning...
The only way i'd say you can do it is with Javascript, make it pop-up when you click the button.

#5 SnaD

SnaD
  • Members
  • PipPip
  • Member
  • 12 posts

Posted 30 June 2006 - 02:59 PM

Thought about it, it doesn't work if user has pop-blocker on  :(

#6 neugi

neugi
  • Members
  • PipPipPip
  • Advanced Member
  • 63 posts

Posted 30 June 2006 - 03:00 PM

<form name="form1" method="post" action="" target="_blank">
</form>


if you you this form tag it will open a new window and send the data to this window.

maybe this helps

best

#7 SnaD

SnaD
  • Members
  • PipPip
  • Member
  • 12 posts

Posted 30 June 2006 - 03:05 PM

Oh yeah, thanks a lot!

#8 neugi

neugi
  • Members
  • PipPipPip
  • Advanced Member
  • 63 posts

Posted 30 June 2006 - 03:17 PM

thats not php ;)

standart html ;)

best




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users