Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #7006

Re: PHP : passing a variable along url

From Jerry Stuckle <jstucklex@attglobal.net>
Newsgroups comp.lang.php
Subject Re: PHP : passing a variable along url
Date 2012-09-11 09:34 -0400
Organization A noiseless patient Spider
Message-ID <k2nel2$9k4$2@dont-email.me> (permalink)
References <2a8b1ae7-1a05-4aa7-a51d-fdc1dafb7c11@googlegroups.com> <0b665cc0-cf03-4d19-a1dd-eb3bb80bcab4@googlegroups.com>

Show all headers | View raw


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@attglobal.net
==================

Back to comp.lang.php | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

PHP : passing a variable along url pritam chavla <pritamchavla@gmail.com> - 2012-09-07 04:12 -0700
  Re: PHP : passing a variable along url Captain Paralytic <paul_lautman@yahoo.com> - 2012-09-07 04:16 -0700
  Re: PHP : passing a variable along url Shake <QUITAESTO@QUITAESTO.NOES> - 2012-09-07 13:49 +0200
  Re: PHP : passing a variable along url "Olaf S." <thesys@gmx.de> - 2012-09-07 14:06 +0200
  Re: PHP : passing a variable along url vivek <vkapadnis@gmail.com> - 2012-09-11 05:51 -0700
    Re: PHP : passing a variable along url Jerry Stuckle <jstucklex@attglobal.net> - 2012-09-11 09:34 -0400

csiph-web