Re: [PHP-DB] DATABASE Error on form submission

2004-08-31 Thread randy
//check for required fields from the form if ((!$_POST[topic_owner]) || (!$_POST[topic_title])|| (!$_POST[post_text])) { header(Location: addtopic.html); exit; } The $_POST is an associative array and the key names need to be wrapped by commas. The same error is happening on your local

[PHP-DB] DATABASE error on form submission.

2004-08-31 Thread Remember14a
Dear Friends, I have a reply form which writes to database, however it gives an error posted below. Guidance, please. -- --- Error when I keep op like 'op'

Re: [PHP-DB] DATABASE error on form submission.

2004-08-31 Thread Arné Klopper
Can you access the other POST variables, if not put quotation marks around method=post, also try using instead of op something else... Kind Regards Arné Klopper NetCB Solutions (Pty) Ltd. www.netcb.com Office: +27 12 997 3007 Fax: 27 12 997 3629 Mobile:

[PHP-DB] DATABASE Error on form submission

2004-08-30 Thread Remember14a
Dear friends, My form works on localhost and writes to mysql database with php script, however when I use same form on server over the internet, it writes to mysql database, that means no connection problem, however it gives me error stated below. Guidance, please.