thanx for the help guys, i now have
<form action="/newauthor.php" method=post>
which I think suggests PHP_SELF is working ok, and I have global variables on?? Is that right?
Anyway, getting back to my original post, I still cant get the page to enter the section of code, whereby the test
if ($submit):
is checked. But I cant see any problems with
<input type=SUBMIT name="submit" value="SUBMIT" </p>
at the bottom of the form. Am I missing something more obvious?
i tried chagnging
if ($submit) :
to
if (isset($submit)):
if (isset($POST['submit']):
if ($POST['submit']):
as suggested in one of the posts, but still no joy.
p.s. - is there a php command to help me determine if the global variables are on, and other settings?
any other suggestions anyone.
Thanks for all the help up to now everyone!!
<!-- newauthor.php -->
<html><head><title>Add new author</title>
</head><body>
<form action="/newauthor.php" method=post>
<p>enter the new author: <br>
Name: <input type=text name="name" size=20 maxlength=100><br>
email: <input type=text name="email" size=20 maxlength=100><br>
<input type=SUBMIT name="sumbit" value="SUBMIT"> </p>
</form>
</body>
</html>