(Help) Php Code 4 creating ?= page
Started on the old forum in June 2010 · view the original in the archive · old links redirect here
wtf ebook to teach u that?! Then u'd nid a fu.ckin encyclopedia to learn objects
here is a php page name it urpage.php
<?php
?>
and then open it in your browser as http://sitename.con/urpage.php?=id and it will work perfectly as you described 😛
to collect the information under the variable id (note you must have id= (something) not .php?=id
you must collect the variable using $_GET["id"]; ($_GET is a variable collection method)
eg: here is a quick script:
<?php //start by open php
if($_GET['id']==1){ // is id equal to 1? if true then....
print 'id is 1<br/>'; //print id is 1
}else{ // else
print 'id is not 1<br/>'; //print id is not 1
} // closing else statement
//close php below
?>
something else wrote: to collect the information under the variable id (note you must have id= (something) not .php?=id
you must collect the variable using $_GET["id"]; ($_GET is a variable collection method) eg: here is a quick script:<?php //start by open php if($_GET['id']==1){ // is id equal to 1? if true then.... print 'id is 1<br/>'; //print id is 1 }else{ // else print 'id is not 1<br/>'; //print id is not 1 } // closing else statement //close php below ?>
Thanks... how can link dis page 2 perform specific task. Like download 4rm directory, how can i automatially generate page