🙁
Hi guys,
I have a problem accessing my variables.
I have tried $HTTP_POST_VARS['myvars'] and $_POST['myvars'],
but it kept giving me undefined index.
I'm using php 4 version, and apache 1.3 version.
my codes as below:
feedback.php:
<html>
<body>
<form method=post action=add.php>
<input type=text name=name>
..submit button here
</form>
</body>
</html>
add.php
<?php
$namehere=$HTTP_POST_VARS['name'];
..insert to db...
...
..
?>
I've also tried $HTTP_POST_VARS["myvars"] and $POST["myvars"],
$HTTP_POST_VARS[myvars] and $POST[myvars]..so on ...but nothing work.
can any1 give me advice on this?
thanks alot
jiayi