[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Sheflug] PHP help
Hi
I have downloaded this PHP script for sending web forms to email and MySQL
database but I am having problems with it.
http://www.arecaweb.com/php/mmex/about.html
I have followed the instructions and this is the URL to my testing page.
It is the exact sample form as issued with the script.
http://www.echidna-it.co.uk/mmex/contact.html
This is what I have found:
If $send_type = 'email'; the form data gets sent to the email address that I
have put in $recipient = ''; there is no problem there.
If $send_type = 'dbase'; then the form data does get inserted into the
database properly.
If $send_type = 'emaildbase'; then I get the email OK but a blank row is
inserted into my database - the only thing that gets entered is a new value
in an autonumber field called "id" that I have included in the table and
also the values for "timestamp" and "user_ip" get entered into fields
because I have set $input_timeandIP = 'yes';
All of the other values from the form data for "name" "phone" "gender" and
"comments" are inserted into the database as "NULL" I have left the default
values for the table fields as "Null" so basically no value is getting
inserted into the database.
My web hosting is running MySQL 4.0.15 and PHP 4.3.3 on Apache 1.3.28 (Unix)
I am assuming that the developer of the script has made a mistake somewhere.
I urgently need this to work so I thought that if there are any PHP experts
here somebody might be able to see what is not working and fix it.
Thanks
James
___________________________________________________________________
Sheffield Linux User's Group -
http://www.sheflug.co.uk/mailfaq.html
GNU the choice of a complete generation.