http://intranet/signup.php?domain=mydomain returns no values

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

    http://intranet/signup.php?domain=mydomain returns no values

    I tried the following: http://intranet/signup.php?Domain=newdomain.com, and
    it doesn't seem to return any values
    In my script I have the following:
    <?

    print $_POST['Domain'];

    $DomainName = $_POST['Domain'];
    print $DomainName;

    print $Domain."\n";
    print $HTTP_POST_VARS['Domain'];

    ?>
    I'm running PHP 4.3.3RC4
    Am I doing this wrong, or do I need to set some options somewhere?
    --

    Kind Regards
    Rudi Ahlers


    Compassion is difficult to give away because it keeps coming back.


  • Andy Hassall

    #2
    Re: http://intranet/signup.php?doma in=mydomain returns no values

    On Sat, 6 Sep 2003 15:02:57 +0200, "Rudi Ahlers" <lordmerlin@bon zai.org.za>
    wrote:
    [color=blue]
    >I tried the following: http://intranet/signup.php?Domain=newdomain.com, and
    >it doesn't seem to return any values
    >In my script I have the following:
    ><?
    >
    >print $_POST['Domain'];
    >
    >$DomainName = $_POST['Domain'];
    >print $DomainName;
    >
    >print $Domain."\n";
    >print $HTTP_POST_VARS['Domain'];
    >
    >?>
    >I'm running PHP 4.3.3RC4
    >Am I doing this wrong, or do I need to set some options somewhere?[/color]

    $_GET[] for values sent in the URL.
    $_POST[] for values posted through a form with method='post'.

    You're using the wrong one above.

    --
    Andy Hassall (andy@andyh.co. uk) icq(5747695) (http://www.andyh.co.uk)
    Space: disk usage analysis tool (http://www.andyhsoftware.co.uk/space)

    Comment

    • spearman

      #3
      Re: http://intranet/signup.php?doma in=mydomain returns no values

      change POST to GET

      --
      -- www.theSpear.net --
      "Rudi Ahlers" <lordmerlin@bon zai.org.za> wrote in message
      news:3f59db30$0 $64722@hades.is .co.za...[color=blue]
      > I tried the following: http://intranet/signup.php?Domain=newdomain.com,[/color]
      and[color=blue]
      > it doesn't seem to return any values
      > In my script I have the following:
      > <?
      >
      > print $_POST['Domain'];
      >
      > $DomainName = $_POST['Domain'];
      > print $DomainName;
      >
      > print $Domain."\n";
      > print $HTTP_POST_VARS['Domain'];
      >
      > ?>
      > I'm running PHP 4.3.3RC4
      > Am I doing this wrong, or do I need to set some options somewhere?
      > --
      >
      > Kind Regards
      > Rudi Ahlers
      >
      >
      > Compassion is difficult to give away because it keeps coming back.
      >
      >[/color]


      Comment

      • Rudi Ahlers

        #4
        Re: http://intranet/signup.php?doma in=mydomain returns no values

        Thanx a mil!!!
        This worked like a bomb

        --

        Kind Regards
        Rudi Ahlers


        Compassion is difficult to give away because it keeps coming back.
        "Andy Hassall" <andy@andyh.co. uk> wrote in message
        news:4tmjlv89ai n6qiuskffklnc8h qjmbsjspn@4ax.c om...[color=blue]
        > On Sat, 6 Sep 2003 15:02:57 +0200, "Rudi Ahlers"[/color]
        <lordmerlin@bon zai.org.za>[color=blue]
        > wrote:
        >[color=green]
        > >I tried the following: http://intranet/signup.php?Domain=newdomain.com,[/color][/color]
        and[color=blue][color=green]
        > >it doesn't seem to return any values
        > >In my script I have the following:
        > ><?
        > >
        > >print $_POST['Domain'];
        > >
        > >$DomainName = $_POST['Domain'];
        > >print $DomainName;
        > >
        > >print $Domain."\n";
        > >print $HTTP_POST_VARS['Domain'];
        > >
        > >?>
        > >I'm running PHP 4.3.3RC4
        > >Am I doing this wrong, or do I need to set some options somewhere?[/color]
        >
        > $_GET[] for values sent in the URL.
        > $_POST[] for values posted through a form with method='post'.
        >
        > You're using the wrong one above.
        >
        > --
        > Andy Hassall (andy@andyh.co. uk) icq(5747695) (http://www.andyh.co.uk)
        > Space: disk usage analysis tool (http://www.andyhsoftware.co.uk/space)[/color]


        Comment

        • Rudi Ahlers

          #5
          Re: http://intranet/signup.php?doma in=mydomain returns no values

          I now have another problem with this script. Below is the code, which is
          part of a table, and it prints out the domainname, but there is a 1 at the
          end. Why is that? And how do I get it away?

          <TD>www. <?
          if ($Domain == "blank") {
          ?><INPUT NAME="DomainNam e" TYPE="text" ID="DomainName" > <?
          } else {
          print print $_GET['Domain'];}?></TD>




          --

          Kind Regards
          Rudi Ahlers


          Compassion is difficult to give away because it keeps coming back.
          "Andy Hassall" <andy@andyh.co. uk> wrote in message
          news:4tmjlv89ai n6qiuskffklnc8h qjmbsjspn@4ax.c om...[color=blue]
          > On Sat, 6 Sep 2003 15:02:57 +0200, "Rudi Ahlers"[/color]
          <lordmerlin@bon zai.org.za>[color=blue]
          > wrote:
          >[color=green]
          > >I tried the following: http://intranet/signup.php?Domain=newdomain.com,[/color][/color]
          and[color=blue][color=green]
          > >it doesn't seem to return any values
          > >In my script I have the following:
          > ><?
          > >
          > >print $_POST['Domain'];
          > >
          > >$DomainName = $_POST['Domain'];
          > >print $DomainName;
          > >
          > >print $Domain."\n";
          > >print $HTTP_POST_VARS['Domain'];
          > >
          > >?>
          > >I'm running PHP 4.3.3RC4
          > >Am I doing this wrong, or do I need to set some options somewhere?[/color]
          >
          > $_GET[] for values sent in the URL.
          > $_POST[] for values posted through a form with method='post'.
          >
          > You're using the wrong one above.
          >
          > --
          > Andy Hassall (andy@andyh.co. uk) icq(5747695) (http://www.andyh.co.uk)
          > Space: disk usage analysis tool (http://www.andyhsoftware.co.uk/space)[/color]


          Comment

          • Andy Hassall

            #6
            Re: http://intranet/signup.php?doma in=mydomain returns no values

            On Sat, 6 Sep 2003 23:56:59 +0200, "Rudi Ahlers" <lordmerlin@bon zai.org.za>
            wrote:
            [color=blue]
            >Newsgroups: comp.lang.php
            >
            >I now have another problem with this script. Below is the code, which is
            >part of a table, and it prints out the domainname, but there is a 1 at the
            >end. Why is that? And how do I get it away?
            >
            > <TD>www. <?
            > if ($Domain == "blank") {
            > ?><INPUT NAME="DomainNam e" TYPE="text" ID="DomainName" > <?
            > } else {
            > print print $_GET['Domain'];}?></TD>[/color]
            ^^^^^ ^^^^^

            The rightmost print does a print, and returns 1 (http://uk.php.net/print). The
            other print then prints the second print's return value, i.e. 1.

            --
            Andy Hassall (andy@andyh.co. uk) icq(5747695) (http://www.andyh.co.uk)
            Space: disk usage analysis tool (http://www.andyhsoftware.co.uk/space)

            Comment

            • Rudi Ahlers

              #7
              Re: http://intranet/signup.php?doma in=mydomain returns no values

              "Andy Hassall" <andy@andyh.co. uk> wrote in message
              news:7bmklvorcu ld85kj37uskrmnj doforfehq@4ax.c om...[color=blue]
              > On Sat, 6 Sep 2003 23:56:59 +0200, "Rudi Ahlers"[/color]
              <lordmerlin@bon zai.org.za>[color=blue]
              > wrote:
              >[color=green]
              > >Newsgroups: comp.lang.php
              > >
              > >I now have another problem with this script. Below is the code, which is
              > >part of a table, and it prints out the domainname, but there is a 1 at[/color][/color]
              the[color=blue][color=green]
              > >end. Why is that? And how do I get it away?
              > >
              > > <TD>www. <?
              > > if ($Domain == "blank") {
              > > ?><INPUT NAME="DomainNam e" TYPE="text" ID="DomainName" > <?
              > > } else {
              > > print print $_GET['Domain'];}?></TD>[/color]
              > ^^^^^ ^^^^^
              >
              > The rightmost print does a print, and returns 1[/color]
              (http://uk.php.net/print). The[color=blue]
              > other print then prints the second print's return value, i.e. 1.
              >
              > --
              > Andy Hassall (andy@andyh.co. uk) icq(5747695) (http://www.andyh.co.uk)
              > Space: disk usage analysis tool (http://www.andyhsoftware.co.uk/space)[/color]

              Small mistake, yet it can fool you around so much. Thank you for pointing
              this out to me :)


              --

              Kind Regards
              Rudi Ahlers


              Compassion is difficult to give away because it keeps coming back.


              Comment

              Working...