SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Thread: simple GET

  1. #1
    SitePoint Member
    Join Date
    Mar 2007
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    simple GET

    I am trying to pass info from one page to another, but i cant seen be able to GET the values.


    can some one show me how to use the GET?

  2. #2
    .* draziW tnioPetiS *. bronze trophy
    Join Date
    Jun 2004
    Location
    "Then I figure the most good good guy will win."
    Posts
    1,666
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Would this help? You are talking about the URL query string, correct? Or are you passing via POST (form data)? Maybe a little AJAX? I must admit though, I have never used JS to GET vars... although, xGetURLArguments looks like it would do the trick.

    If this question were in the PHP forum, I think I would be more helpful.

  3. #3
    SitePoint Member
    Join Date
    Mar 2007
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You must use a form on the sending page:
    <?php
    print "<form action ='$adress' method='post'>";
    <input type='text' name='tabelle[0]' value='$value' >
    print"</form>\n";

    On the getting page:
    $tabelle= $_Get['tabelle'];
    print "$tabelle[0]";
    ?>

    It is just the same with $_Post. Here you can transport more data.

  4. #4
    .* draziW tnioPetiS *. bronze trophy
    Join Date
    Jun 2004
    Location
    "Then I figure the most good good guy will win."
    Posts
    1,666
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Janakar View Post
    It is just the same with $_Post. Here you can transport more data.
    I guess it would be good to know if OP is wanting to use JS or PHP... also, it is not clear if OP is using a form to pass data, or just a simple link.


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
  •