FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » PHP : passing a variable along url
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: PHP : passing a variable along url [message #179079 is a reply to message #179076] Tue, 11 September 2012 13:34 Go to previous message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma:
Senior Member
On 9/11/2012 8:51 AM, vivek wrote:
> On userhandler.php define the variable org_name
> if($_GET['org_name']!='')
> {
> $org_name = $_GET['org_name'];
> }
> else
> {
> $org_name = '';
> }
>
>

Which will give an E_NOTICE if $_GET['org_name'] is not set.

You should always use isset() to ensure a parameter is set before trying
to use it.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Please help In if else while using array
Next Topic: average rate
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Nov 28 11:00:26 GMT 2024

Total time taken to generate the page: 0.04724 seconds