28, May 2012

Different results for Iframe and php include - webmaster forum

 
Webdigity webmaster forums
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web Development  >  PhP
Topic: Different results for Iframe and php include
« previous next »
Pages: [1] Print
Instabuck - The easy way to sell digital products online

Author Topic: Different results for Iframe and php include  (Read 977 times)
Raped By Google
*
Gender: Male
Posts: 27
206 credits
Members referred : 0

PPC 4 Real Estate


« on: Mar 25, 2007, 06:16:46 am »

I'm trying to figure why a script I wrote is working in an IFrame but won't work as a php include.

The script is in one coded file. The user selects from the directory and the selection results in the page being submitted to itself. I built it as a form and the values needed for the second display are carried via hidden inputs in the form.

Each selection option is a select button through the following two lines of code -
$next_menu_url = "<input type='submit' class='btn' $mouseover value='$cat_name' name='B1'>";
$display_block{$actual_page} = $display_block{$actual_page}."<td ALIGN='CENTER'><font FACE='Small Fonts' SIZE='1'>$next_menu_url</font></td>";

Then the form starts with these lines

<form enctype="multipart/form-data" action"<?php print $PHP_SELF ?>" method="POST">
<input type="hidden" name="Action" value="SaveList">

and after the form is submitted to itself I check for the $Action vale with
}elseIf(isset($Action)){

That code is not picking up any value in $Action. if viewing the page with a include statement but is picked up if viewing the page through an Iframe.




Those values are carried fine in an IFrame but if I access the same page with php include the values aren't carried.

Perhaps it may make it clearer if I say the display page is created on website A (as a php script) from the db of site A. It is called from any number of remote websites (syndicate style). When called as an iframe it works fine if as a php include it doesn't.


I don't know if that is ennough info for anyone to know what the problem is.




Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #1 on: Mar 25, 2007, 10:38:38 am »

include = server side
iframe = client side html

these are two different things and are not related to each other

Raped By Google
*
Gender: Male
Posts: 27
206 credits
Members referred : 0

PPC 4 Real Estate


« Reply #2 on: Mar 26, 2007, 03:07:37 am »

ahhh ok. Just like with java script and php. That explains it! There is no easy tweak then - I have to rewrite it for php. Thanks Olaf - you just saved me a useless debugging attempt.
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=6301
Tags : php Iframes Bookmark this thread : Digg Del.icio.us Dzone more....

Pages: [1] Print 
Webdigity Webmaster Forums  >  Web Development  >  PhP
Topic: Different results for Iframe and php include
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 28, 2012, 07:01:24 pm





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!






Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2012 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.