http://localhost/kplfantasyfootball/example.php?id=7&posid=3

Hi, could someone please explain to me how I can read the two parameters carried in the URL.
Thanx.

you would use $_GET

so if it was process.php?id=1, you would have something like

$id = $_GET['id'];
echo = $id

and your output would be 1

hi

mastia "two parameters carried in the URL" means exctly for what you are talking ?

if you talking about id=7&posid=3 then you can get them by $_SERVER;

check server variable reference of php you can get better idea.

there is number of option to get it that values.
here is one of that.
first write extract() after ob_start(); in phpcode

<?
ob_start();
extract($_REQUEST);
echo $id;
echo $posid; 
?>

see now. you can use directly as $id,$postid where you want to use.

in php get values from url using REQUEST[].

$id=$_REQUEST['id'];
$postid=$_REQUEST['posid'];

just for my info here. $_REQUEST is for either GET or POST Values right?

can you help me find examples on how to contract ERD of Enrollments System??.... and how to make a flowchart

is that not a question for your own post?

there is number of option to get it that values.
here is one of that.
first write extract() after ob_start(); in phpcode

<?
ob_start();
extract($_REQUEST);
echo $id;
echo $posid; 
?>

see now. you can use directly as $id,$postid where you want to use.

It works like a charm!
Thanx fellas.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.