Re: [PHP] problem retrieving variables.

2010-09-02 Thread Jim Lucas
Paul Halliday wrote:
 I think I just might be missing the logic here.
 
 I have a page that is created and within this page, I include an
 iframe like this:
 
 $qp = urlencode($when $wFilter $aFilter);
 echo \rtrtd id=links colspan=2 style=\display:none; padding-left: 
 12px;\
   \rIFRAME id=\links-frame\ name=\links-frame\
 src=\edv.php?qp=$qp\ width=100% height=1000 frameborder=0
 scrolling=no/IFRAME
   \r/td
   \r/tr;
 
 When I call edv.php though, I can't $qp = $_REQUEST['qp'];
 
 What am I missing?
 
 Thanks.
 

Just below your urlencode() call in the parent script place echo $qp; to see if
the value is what you expect?

Then within edv.php add this

var_dump($_REQUEST);

and see if $_REQUEST['qp'] is there, and what it is.

Jim



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] problem retrieving variables.

2010-09-02 Thread Paul Halliday
On Thu, Sep 2, 2010 at 5:43 PM, Jim Lucas li...@cmsws.com wrote:
 Paul Halliday wrote:
 I think I just might be missing the logic here.

 I have a page that is created and within this page, I include an
 iframe like this:

 $qp = urlencode($when $wFilter $aFilter);
 echo \rtrtd id=links colspan=2 style=\display:none; padding-left: 
 12px;\
           \rIFRAME id=\links-frame\ name=\links-frame\
 src=\edv.php?qp=$qp\ width=100% height=1000 frameborder=0
 scrolling=no/IFRAME
           \r/td
           \r/tr;

 When I call edv.php though, I can't $qp = $_REQUEST['qp'];

 What am I missing?

 Thanks.


 Just below your urlencode() call in the parent script place echo $qp; to see 
 if
 the value is what you expect?

 Then within edv.php add this

 var_dump($_REQUEST);

 and see if $_REQUEST['qp'] is there, and what it is.

 Jim




I think I see what I am doing wrong..

...
createlink function up here then...

?php $qp = $_REQUEST['qp'];?
html
body
form id=edv method=post action=edv.php
table width=100% border=0 cellpadding=1 cellspacing=0trtd align=left
input onMouseOver=style.backgroundColor='#ff';
onMouseOut=style.backgroundColor='#DD'; id=links name=links
type=submit value=create link graph style=font-size: 9px; border:
none; border: .5pt solid #00; background:#DD;
/td
?php
echo $qp;
if ($_REQUEST['links']) {
CreateLink($qp);
}
?
/form
/body
/html

I can't do what I am trying to do. Do I need to put it in a hidden
field within the form and then re-request?

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php