Jump to content

Inline frame And $_REQUEST Variable


phpmash

Recommended Posts

When click on a particular category, the corresponding products need to be opened in new window with file name products.php (Link will be http://mysite.com/products.php?catname=cat1).

In this template products will be listed in an inline frame which loads the php file listproducts.php.

In listproducts.php the $_REQUSET['catname'] is not available.

How can I get the catname in to inline frame php page

:)

Link to comment
https://forums.phpfreaks.com/topic/98467-inline-frame-and-_request-variable/
Share on other sites

My code is like as follows:

 

$url="products.php?cat=$row[0]";

<?php echo "<a href=\"$url\" target=\"mlist\">.$row[0]."</a>"; ?>

 

Here "mlist" is the name of iframe used in "products.php"

This frame loads the php file "listproducts.php".

In listproducts.php I have the query like

SELECT * FROM products WHERE category='$catname'

$catname needs to be passed from previous page

 

Still the problem exists

 

Archived

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

×
×
  • Create New...

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.