varaible passed through URL is not in $_GET array

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • sharma

    #1

    varaible passed through URL is not in $_GET array

    Hi,

    I am passing a variable through url.


    In the maxmoney.php I have tried to catch it this way
    $email=$_GET['id'];
    when i echoed $email or $_GET['id']; its not displaying.

    I am using php 5. I could not figure out what the issue is. can any
    help me?

    Thanks in advance,
    sharma

  • Ewoud Dronkert

    #2
    Re: varaible passed through URL is not in $_GET array

    sharma wrote:[color=blue]
    > I am passing a variable through url.
    > www.example.com/maxmoney.php?id=xyz@yahoo.com[/color]

    Lose the @ with http://php.net/urlencode

    --
    E. Dronkert

    Comment

    • Kim André Akerø

      #3
      Re: varaible passed through URL is not in $_GET array

      sharma wrote:
      [color=blue]
      > Hi,
      >
      > I am passing a variable through url.
      > www.example.com/maxmoney.php?id=xyz@yahoo.com
      >
      > In the maxmoney.php I have tried to catch it this way
      > $email=$_GET['id'];
      > when i echoed $email or $_GET['id']; its not displaying.
      >
      > I am using php 5. I could not figure out what the issue is. can any
      > help me?
      >
      > Thanks in advance,
      > sharma[/color]

      What shows up on the page when you add the following line?
      var_dump($_GET) ;

      --
      Kim André Akerø
      - kimandre@NOSPAM betadome.com
      (remove NOSPAM to contact me directly)

      Comment

      • sharma

        #4
        Re: varaible passed through URL is not in $_GET array

        Thanks for your suggestions..
        This problem has been solved as we are using mod_rewrite. Using QSA
        flag (in those RewriteRules with ?) if there are missing form data from
        GET..

        Comment

        Working...