any one Knows How to create php page with this format (urpage .php?=id)
(Help) Php Code 4 creating ?= page
Collapse
X
-
here is a php page name it urpage.php
PHP Code:<?php
?>
Comment
-
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 Code:<?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
?>Last edited by something else; 03.06.10, 20:13.
Comment
-
Originally posted by something else View Postto 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 Code:<?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
?>
how can link dis page 2 perform specific task. Like download 4rm directory, how can i automatially generate page
Comment
Comment