[b]php and frames[/b]

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

User avatar
New php-forum User
New php-forum User
Posts: 64
Joined: Thu Aug 22, 2002 1:07 am

[b]php and frames[/b]

Postby lacroix13 » Thu Aug 22, 2002 1:12 am

I have a problem with opening some pages in different frames.

I have a page with 5 frames and when i click a button in one of them i need to open 2 different filess in 2 frames.I dont know how.how can i do this? :evil:


Postby Jay » Thu Aug 22, 2002 2:14 am

That's got nothing to do with PHP, you'll need to use a bit of javascript there.

I'm not sure of the complete code off the top of my head, but it would be something like this

function yourFunction() {
windowname.location1 = newlocation.php
windowname.location2 = newlocation2.php

<a href=# onclick=yourFunction()>The link</a>


Postby DoppyNL » Thu Aug 22, 2002 2:37 am

is indeed an html problem.
can be solved with javascript as Jay says, but remember that it won't work when the client has his javascript disabled. In that case there will simply happen nothing.

Greetz Daan

Return to “PHP coding => General”

Who is online

Users browsing this forum: No registered users and 9 guests