(Help) Php Code 4 creating ?= page

Started on the old forum in June 2010 · view the original in the archive · old links redirect here

8 replies · 525 views · started 16 years ago · 1 min read

4 participants
hoyme Junior · 15 posts #1

any one Knows How to create php page with this format (urpage .php?=id)

djlee Developer · 224 posts #2
preg_match("/^=(\d+)/",$_SERVER['QUERY_STRING'],$m);

$id = isset($m[1]) ? $m[1] : 0;
hoyme Junior · 15 posts #3

Thanks, i dont understand any of this, can some one make a tutorial ebook 4 this or explain better

hoyme Junior · 15 posts #5

ok can u explain@ mobile gigs

something else Fellow · 2,296 posts #7

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 
?> 
hoyme Junior · 15 posts #8

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

something else Fellow · 2,296 posts #9

use an auto index script 😛 u can find one in scripts forum 😛

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close