//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
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'
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:
Dear Friends,
My form was working on localhost, without any error and was writing to
database, however, now on server, over the internet, it does write to database,
there is no problem of connection or writng to database.
Still it gives this shabby error.
Any Guidance, please.
You get this notice because when the form is displayed, it means the data
has not been sent, hence $_POST is empty!
Add isset() in front of every $_POST and $_GET
Example:
if (isset($_POST['pp'] $_POST['pp'] != 'addpost')
---
You may also add this line at the very top of the page!
This line
Read the page http://p2p.wrox.com/topic.asp?TOPIC_ID=17719. It explains a few ways to
solve you problem.
From: Nadim Attari [EMAIL PROTECTED]
Date: 2004/08/31 Tue AM 08:49:39 GMT
To: [EMAIL PROTECTED]
Subject: [PHP-DB] Re: Database Error submitting form
replyAll
Description: null
--
Howdy.
The question: How commonly accepted and recommended are the PEAR packages DB and
DB_DataObject? Anybody have some warnings or encouraging stories from projects done
with these php enhancement packs?
I'm about to get started on a php and postgreSQL project that is starting from
Upon reading your suggestion, I tested the same script on a new server
using PHP 5 and don't seem to have this problem. Might there be an
installation problem? Or something with php itself?
-Original Message-
From: Torsten Roehr [mailto:[EMAIL PROTECTED]
Sent: Friday, August 27, 2004
This is very strange. Ever since i moved my site from redhat 7.2 32bit to SUSE
SLES 8 64 bit with DB2 connect 64 bit and PHP 4.3.8 with IBM DB2 support. I have
always used the odbc drivers and they have always worked in Phakt. I have tried the
latest version of Phakt and still not
Irm Jr [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Upon reading your suggestion, I tested the same script on a new server
using PHP 5 and don't seem to have this problem. Might there be an
installation problem? Or something with php itself?
Do a echo phpinfo(); on both systems and
I have done that, and there are no differences. Thank you for the
advice.
-Original Message-
From: Torsten Roehr [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 31, 2004 10:31 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP-DB] Re: log in script kicks me out
Irm Jr [EMAIL PROTECTED] wrote
Hi all.
This might be a simple answer, but I'm still not sure what the case is.
Okay, so I have a form in my html that has some inputs. These each
have a `name` and a `value` attribute to them, of course.
I cannot seem to access the name/value pair in my php without using the
$_POST
if the checkbox is checked then you'll get the value in the php script. If
globals are turned on then echo $foo; will work, otherwise you have to use
something like: echo $_POST['foo'];
its a good idea to write your scripts without dependency on globals being
turned on, its a security risk for it
On Tue, 31 Aug 2004 08:14:17 -0500, Bob Sherer [EMAIL PROTECTED] wrote:
Howdy.
The question: How commonly accepted and recommended are the PEAR packages DB and
DB_DataObject? Anybody have some warnings or encouraging stories from projects done
with these php enhancement packs?
I'm
Thanks for your reply. Those who have responded, I am thankful to.
~Philip
On Aug 31, 2004, at 4:14 PM, Jasper Howard wrote:
if the checkbox is checked then you'll get the value in the php
script. If
globals are turned on then echo $foo; will work, otherwise you have to
use
something like: echo
Mac users, please forgive such a Windows-centric question, but I need your help. And
you can educate me in the process. I am helping a student of mine set up a development
environment with php, mysql, and a webserver, and she uses a Mac. Are there any
installation issues unique to mac that I
On Tue, 31 Aug 2004 15:38:59 -0700, michael [EMAIL PROTECTED] wrote:
Mac users, please forgive such a Windows-centric question, but I need your help. And
you can educate me in the process. I am helping a student of mine set up a
development environment with php, mysql, and a webserver, and
Mac users, please forgive such a Windows-centric question, but I need
your help. And you can educate me in the process. I am helping a
student of mine set up a development environment with php, mysql, and
a webserver, and she uses a Mac. Are there any installation issues
unique to mac that I
18 matches
Mail list logo