ramu_rp2005 Posted May 8, 2006 Share Posted May 8, 2006 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]<?phperror_reporting(E_ALL);ini_set('display_errors', 1); ?>[/code] Quote Link to comment https://forums.phpfreaks.com/topic/9290-variable-accessing-problem/ Share on other sites More sharing options...
wildteen88 Posted May 8, 2006 Share Posted May 8, 2006 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 messageAlso 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. Quote Link to comment https://forums.phpfreaks.com/topic/9290-variable-accessing-problem/#findComment-34249 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.