Jump to content

Variable accessing problem.


ramu_rp2005

Recommended Posts

Hi php gurus,
I'm having a problem in accessing the values of the variable from the previous form. The previous form variable is defined below:

[code]if(isset($pstreamname)) {
?>
             <tr>
                 <td valign=top align=right><tt><b>Stream Name</b></td>
                 <td valign=top><input type="text" name="streamname" size="30"><br></td>
             </tr>
  
<?
}[/code]


and accessing the above variable is as below.

[code]$streamname=@$_REQUEST['streamname'];
echo "Streamname is $streamname";
[/code]

but its not echoing anything.can anyone tell me why and wht to do? I've added the error reporting also at the top.no errors,plz help.

[code]<?php
error_reporting(E_ALL);
ini_set('display_errors', 1);
?>[/code]
Link to comment
https://forums.phpfreaks.com/topic/9290-variable-accessing-problem/
Share on other sites

You wont get any errors becuase your are suppressing them, as you have an @ symbol infront of your $_REQUEST['streamname'] variable, as seen below:
[code]$streamname=@$_REQUEST['streamname'];[/code]
When you remove the @ symbol you may get a notice message

Also it appreas that you dont have a submit button in order to submit the form data. If you have nothing for submitting a form then your data will never be sent as you havnt told the browser to submit the form data.

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.