"Warning: Cannot add header information - headers already sent by (output started at neworder.php:2) in
neworder1.php on line 1"
this is because you are trying to set a cookie/or redirect (Header(""); in neworder.php
if you are doing either of these make sure nothing is echoed before these commands.
Even white space before the first <?
at the top of the page & then the form.
"this appears a few times at the top of the page. At the bottom of the page i get"
"Warning: 5 is not a valid MySQL result resource in neworder.php on line 29"
This could be a number of things but it's most likely that the SQl is wrong. Test this by copying the SQL in running it in a telnet session, if all's well then check PHP is connecting to the SQL server correctly.
"The only thing in neworder.php is the connection to mysql via an .inc file & the sql to do the checking."
"If .html file is shown then there are no error messages."
"Any ideas ?"
Loads 🙂
"Another thing if i may, how can i make sure that no one bypasses the neworder.php file which does the checking and go straight to the neworder1.php file ?"
Can't really tell you as I don't know how it (your program) works properly.
Thanks
Your welcome
If you get really stuck, you can send your program to nathan@ukip.com and I'll have a look in my spare time.
Happy coding
Nath