Professional Web Applications Themes

more than $_SERVER['PHP_SELF'] what could i use? - PHP Development

i have a page that have many variable attached to it, like: www.mysite.com/default.php?v=1 now "v" can change to many values depends on the link on the site, now here is what i want, i want to pass a variable , let us say "b", and i want to assigne that variable b some values, but i want what ever in the address bar, like: www.mysite.com/default.php?v=1&c=2 or whatever to stay the same than, i want to append the "b" and it's value to the string, so it gets to be like : www.mysite.com/default.php?v=1&b=3 is there a php function that can take ...

  1. #1

    Default more than $_SERVER['PHP_SELF'] what could i use?

    i have a page that have many variable attached to it, like:
    www.mysite.com/default.php?v=1

    now "v" can change to many values depends on the link on the site, now here
    is what i want, i want to pass a variable , let us say "b", and i want to
    assigne that variable b some values, but i want what ever in the address
    bar, like:
    www.mysite.com/default.php?v=1&c=2 or whatever to stay the same than, i want
    to append the "b" and it's value to the string, so it gets to be like :
    www.mysite.com/default.php?v=1&b=3

    is there a php function that can take the URL in the address (with the
    values added) and append whatever to it?
    i know there is a $_SERVER['PHP_SELF'] but it does take the URL without the
    added variables. help please
    thanks
    Jim


    Jim Guest

  2. #2

    Default Re: more than $_SERVER['PHP_SELF'] what could i use?

    Jim S. said the following on 09/06/2005 23:18: 

    $_SERVER['REQUEST_URI']

    --
    Oli
    Oli Guest

  3. #3

    Default Re: more than $_SERVER['PHP_SELF'] what could i use?

    Oli Filth wrote:
     
    >
    > $_SERVER['REQUEST_URI']
    >
    >[/ref]
    Or use the $_GET array:

    <?php
    foreach ($_GET as $key => $value) {
    echo "Key: $key; Value: $value<br />\n";
    }
    ?>

    Pretty simple actually.
    Jeroen Guest

  4. #4

    Default Re: more than $_SERVER['PHP_SELF'] what could i use?

    Oli Filth wrote:
     
    >
    > $_SERVER['REQUEST_URI']
    >
    >[/ref]
    Or use the $_GET array:

    <?php
    foreach ($_GET as $key => $value) {
    echo "Key: $key; Value: $value<br />\n";
    }
    ?>

    Pretty simple actually.
    Jeroen Guest

  5. #5

    Default Re: more than $_SERVER['PHP_SELF'] what could i use?

    Jeroen Maathuis said the following on 11/06/2005 00:15: 
    >>
    >>$_SERVER['REQUEST_URI']
    >>
    >>[/ref]
    >
    > Or use the $_GET array:
    >
    > <?php
    > foreach ($_GET as $key => $value) {
    > echo "Key: $key; Value: $value<br />\n";
    > }
    > ?>
    >
    > Pretty simple actually.[/ref]

    Yeah, that sounds a hell of a lot simpler than $_SERVER['REQUEST_URI']!!!!

    --
    Oli
    Oli Guest

  6. #6

    Default Re: more than $_SERVER['PHP_SELF'] what could i use?

    well guys, thank u very very much,, i have not tried that solution yet, but
    i hope if i have problmes for u to check back since i may know a little
    about php, but i still struggle :(
    please check back, don't leave me :( :)
    again guys thanks a bunch
    Jim

    "Jim S." <com> wrote in message
    news:Me3qe.1842$news.atl.earthlink.net... 
    here 
    want 
    the 


    Jim Guest

Similar Threads

  1. form action = <?=$_SERVER['PHP_SELF']?> - stopped working
    By tHatDudeUK in forum PHP Development
    Replies: 10
    Last Post: January 14th, 11:41 AM
  2. #25448 [Fbk->Opn]: $_SERVER['PHP_SELF'] fails to return a value (broken since 4.3.2)
    By david at advisorymatters dot co dot uk in forum PHP Development
    Replies: 1
    Last Post: September 10th, 07:47 AM
  3. Replies: 1
    Last Post: September 9th, 08:46 PM
  4. #25448 [NEW]: $_SERVER['PHP_SELF'] fails to return a value (broken since 4.3.2)
    By david at advisorymatters dot co dot uk in forum PHP Development
    Replies: 0
    Last Post: September 9th, 11:01 AM
  5. [PHP] Using $PHP_SELF
    By Matt Matijevich in forum PHP Development
    Replies: 0
    Last Post: July 31st, 08:49 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not 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