misterjingo wrote:Hi all, im having trouble with PHP_SELF. My problem is global vars are off, so to combat this I use:
<form action="<?php print $_SERVER['PHP_SELF'] ?>" method="post">
in the form method. Yet the variables are still not passed until I use
$var = $_POST['var'] name
But doing this displays a warning of an unindexed var durings the pages first display, after the values have been submitted the errors go because the vars now contain data.
Am I going about this all the wrong way? Any help will be greatly appreciated.
Code: Select all
<form action="<?php echo $PHP_SELF; ?>" method="post">