Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: [PHP] problem retrieving variables.

0 views
Skip to first unread message

Paul Halliday

unread,
Sep 2, 2010, 5:19:22 PM9/2/10
to Jim Lucas, php-g...@lists.php.net
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 "\r<tr><td id=links colspan=2 style=\"display:none; padding-left: 12px;\">
>>           \r<IFRAME 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=0><tr><td align=left>
<input onMouseOver="style.backgroundColor='#ffffff';"
onMouseOut="style.backgroundColor='#DDDDDD';" id=links name=links
type="submit" value="create link graph" style="font-size: 9px; border:
none; border: .5pt solid #000000; background:#DDDDDD;">
</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?

Paul Halliday

unread,
Sep 2, 2010, 4:13:08 PM9/2/10
to php-g...@lists.php.net
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 "\r<tr><td id=links colspan=2 style=\"display:none; padding-left: 12px;\">
\r<IFRAME 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.

--
Paul Halliday
Ideation | Individualization | Learner | Achiever | Analytical
http://www.pintumbler.org

Jim Lucas

unread,
Sep 2, 2010, 4:43:54 PM9/2/10
to Paul Halliday, php-g...@lists.php.net
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 "\r<tr><td id=links colspan=2 style=\"display:none; padding-left: 12px;\">
> \r<IFRAME 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

0 new messages