Accepting data from URL Parameters

Ask a Question related to PHP Development, Design and Development.

  1. #1

    Default Accepting data from URL Parameters

    I appologize for what may be a newbie-like request, but I have not been
    able to find this information in the PHP documentation.

    If I were to have a link on an HTML page such as the following:

    [url]http://www.foo.com/myscripts/myscript.php?Value1=value&Value2=value[/url]

    How can I retrieve those values in the script? Should I construct the
    link differently? Is there a completely different method I'm missing
    altogether?

    Thanks so much in advance for any help you could provide!

    Jared
    Jared Steckel Guest

  2. Similar Questions and Discussions

    1. Binding null data to web service parameters?
      I'm building a simple Flex form that has several TextInput fields that a person can use as search criteria. They are basically optional fields. The...
    2. Accepting datasets as parameters to webservice
      I've created a web service with a method that accepts a string and a dataset as parameters. I've created the proxy class and written a .ASPX page...
    3. WS parameters & return values data integrity
      Hello All, I have built a web service that accepts and sends binary data encoded as base64 strings. What I need to know is if the .NET framework...
    4. Link Master/Child fields for a subform data source with multiple parameters?
      On Mon, 21 Jul 2003 19:36:18 -0700, "Tim Cali" <cali_876@yahoo.com> wrote: Ordinarily one would do so to maintain relational integrity between...
    5. Extended Stored Procedures accepting Real Parameters
      I am looking for examples of Extended stored procedures that accept floating point or decimal numbers as parameters. Any assistance would be...
  3. #2

    Default Re: Accepting data from URL Parameters

    try this:
    <?php
    echo 'Value1 = '.$_GET['Value1'];
    echo "<br>\n";
    echo 'Value2 = '.$_GET['Value2'];
    ?>

    Jared Steckel wrote:
    > I appologize for what may be a newbie-like request, but I have not been
    > able to find this information in the PHP documentation.
    >
    > If I were to have a link on an HTML page such as the following:
    >
    > [url]http://www.foo.com/myscripts/myscript.php?Value1=value&Value2=value[/url]
    >
    > How can I retrieve those values in the script? Should I construct the
    > link differently? Is there a completely different method I'm missing
    > altogether?
    >
    > Thanks so much in advance for any help you could provide!
    >
    > Jared
    Gal Guest

  4. #3

    Default Re: Accepting data from URL Parameters

    In article <Pine.LNX.4.21.0309241037390.2263-
    [email]100000@jaredsroom.msns.sm.ptd.net[/email]>, [email]steckelj@jaredsroom.com[/email] says...
    > I appologize for what may be a newbie-like request, but I have not been
    > able to find this information in the PHP documentation.
    >
    > If I were to have a link on an HTML page such as the following:
    >
    > [url]http://www.foo.com/myscripts/myscript.php?Value1=value&Value2=value[/url]
    >
    > How can I retrieve those values in the script? Should I construct the
    > link differently? Is there a completely different method I'm missing
    > altogether?
    >
    > Thanks so much in advance for any help you could provide!
    >
    > Jared
    Each of those values will be available as $_GET{'Value1'} $_GET{'Value2'}
    etcetera. Note that the variable names are case sensitive.

    --
    Quod subigo farinam

    A: Because it messes up the order in which people normally read text.
    Q: Why is top-posting such a bad thing?
    A: Top-posting.
    Q: What is the most annoying thing on usenet?
    David Robley Guest

  5. #4

    Default Re: [PHP] Accepting data from URL Parameters

    On Wed, 24 Sep 2003 10:40:42 -0400 (EDT)
    Jared Steckel <steckelj@jaredsroom.com> wrote:
    > I appologize for what may be a newbie-like request, but I have not
    > been able to find this information in the PHP documentation.
    >
    > If I were to have a link on an HTML page such as the following:
    >
    > [url]http://www.foo.com/myscripts/myscript.php?Value1=value&Value2=value[/url]
    >
    > How can I retrieve those values in the script? Should I construct
    > the link differently? Is there a completely different method I'm
    > missing altogether?
    >
    > Thanks so much in advance for any help you could provide!
    >
    > Jared
    >
    Check out the $_GET array.

    --
    Raquel
    ================================================== ==========
    What lies behind us and what lies between us are tiny matters
    compared to what lies within us.
    --Oliver Wendell Holmes

    --
    Raquel
    ================================================== ==========
    What lies behind us and what lies between us are tiny matters
    compared to what lies within us.
    --Oliver Wendell Holmes
    Raquel Rice Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139