Re: problem retrieving variables.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Sep 2, 2010 at 5:43 PM, Jim Lucas <lists@xxxxxxxxx> 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?

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




[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux