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?
newb seeks knowledge
Started by wolfgar, Feb 27 2010 02:18 PM
2 replies to this topic
#1
Posted 27 February 2010 - 02:18 PM
|
|
|
#2
Posted 27 February 2010 - 02:39 PM
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
in php to get that you can use $_GET[] and $_POST[]
in html there is GET and POST. get is the ?ID=65678 and post is more on the backend side
<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[]
<?php $ID = $_GET['ID']; echo $ID; ?>this will take the value and print it to the screen.
#3
Posted 27 February 2010 - 02:43 PM
ok , thats easy enough
thanks for the help
thanks for the help


Sign In
Create Account

Back to top









