Jump to content

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.
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.