keko2005
09-06-2005, 06:30 PM
im am testing a switch function, but it doesnt seem to work. i tried using get and post, and neither seemed to work. i thought i was using it correctly, can someone help me out?
this is wha im using
tester.php
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
<meta name="generator" content="Adobe GoLive">
<title>agl:pagetitle</title>
</head>
<body bgcolor="#ffffff">y
<p><a href="caser.php?post=t1">Get Rock</a></p>
</body>
</html>
caser.php
<?php
switch($HTTP_POST_VARS['post']){
case 't1':
echo "1";
break;
case 't2':
echo "2";
break;
default:
echo "bad";
break;
}
?>
any help or advice would help me out a lot. thanks for your time
this is wha im using
tester.php
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
<meta name="generator" content="Adobe GoLive">
<title>agl:pagetitle</title>
</head>
<body bgcolor="#ffffff">y
<p><a href="caser.php?post=t1">Get Rock</a></p>
</body>
</html>
caser.php
<?php
switch($HTTP_POST_VARS['post']){
case 't1':
echo "1";
break;
case 't2':
echo "2";
break;
default:
echo "bad";
break;
}
?>
any help or advice would help me out a lot. thanks for your time