Closed Thread
Results 1 to 3 of 3

Thread: newb seeks knowledge

  1. #1
    wolfgar is offline Newbie
    Join Date
    Feb 2010
    Posts
    8
    Rep Power
    0

    Question newb seeks knowledge

    how do you get the var or what ever the thing is from a url extension like ".php?ID=87643&name=john" they look like it'd just be another $var but when i tried it didnt work , and i haven't seen any tutorial info that has it ( unless i missed it some how >< )

    could some 1 give me an example of how it works plz?

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    brokenbylaw's Avatar
    brokenbylaw is offline Learning Programmer
    Join Date
    Dec 2009
    Posts
    62
    Rep Power
    0

    Re: newb seeks knowledge

    i expect you to have some html knowledge right?

    in html there is GET and POST. get is the ?ID=65678 and post is more on the backend side
    Code:
    <form action=".php" method="GET">
    <input type="text" name="ID">
    <input type="submit" name="button">
    </form>
    will send .php?ID=

    in php to get that you can use $_GET[] and $_POST[]

    Code:
    <?php
    $ID = $_GET['ID'];
    echo $ID;
    ?>
    this will take the value and print it to the screen.

  4. #3
    wolfgar is offline Newbie
    Join Date
    Feb 2010
    Posts
    8
    Rep Power
    0

    Re: newb seeks knowledge

    ok , thats easy enough
    thanks for the help

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. AI knowledge base
    By PatrickM in forum Programming Theory
    Replies: 0
    Last Post: 03-01-2011, 01:36 PM
  2. Looking for someone with Senior Level Knowledge of C#.NET/ASP.NET
    By Chris@Linium in forum Request Services
    Replies: 0
    Last Post: 07-12-2010, 01:54 PM
  3. American newbie seeks intellectual satisfaction
    By bazwyn in forum General Programming
    Replies: 7
    Last Post: 02-04-2008, 09:34 AM
  4. Finance knowledge base
    By werpacceproth in forum Linux/Unix General
    Replies: 0
    Last Post: 08-06-2007, 03:53 PM

Tags for this Thread

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