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?
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
will send .php?ID=Code:<form action=".php" method="GET"> <input type="text" name="ID"> <input type="submit" name="button"> </form>
in php to get that you can use $_GET[] and $_POST[]
this will take the value and print it to the screen.Code:<?php $ID = $_GET['ID']; echo $ID; ?>
ok , thats easy enough
thanks for the help
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks