PHP mailform

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Bjarnat
Forum Newbie
Posts: 22
Joined: Wed Jan 22, 2003 8:21 am

Post by Bjarnat »

did that and now I get

Parse error: parse error, unexpected $ in /home/www/voices-of-europe.de/subs/ski/htdocs/checkout.php on line 394
Bjarnat
Forum Newbie
Posts: 22
Joined: Wed Jan 22, 2003 8:21 am

Post by Bjarnat »

Hi Mac!

Now I have figuered out why I was getting these errors, becuse I replaced the state with the country in my js script. I went ahead an replaced all the values in php form from this b_state to this b_country

No I have no errors, but this:

Warning: fopen("orders.csv", "a") - Permission denied in /home/www/voices-of-europe.de/subs/ski/htdocs/checkout.php on line 174

Warning: Failed opening '' for inclusion (include_path='.:/usr/share/php/PEAR:/usr/local/php') in /home/www/voices-of-europe.de/subs/ski/htdocs/checkout.php on line 81
Unable to open CSV file for writing. Your order has not been saved.


Warning: Failed opening '' for inclusion (include_path='.:/usr/share/php/PEAR:/usr/local/php') in /home/www/voices-of-europe.de/subs/ski/htdocs/checkout.php on line 85


The settings in my php form are as follows:

$header = "header.html";
$footer = "footer.html";
$returnpage = "main.htm";
$youremail = "spam@nopdesign.com";
$csvfilename = "orders.csv";
$csvquote = "\"\"";
$mode = "BOTH";


What am I doing wrong???

I have set up a work site for you to have a look at the problem I am geting.... any help would be much appreciated!!!


http://ski.voices-of-europe.de/books.htm
Bjarnat
Forum Newbie
Posts: 22
Joined: Wed Jan 22, 2003 8:21 am

Post by Bjarnat »

Hi Mac,

Could you tell me what's a orders.csv file and how does one creat it? :oops:

THANKS!
Bjarnat
Forum Newbie
Posts: 22
Joined: Wed Jan 22, 2003 8:21 am

Post by Bjarnat »

Hi Mac

Sorry to trouble you, but I am really stacked! 8O

After finally getting all the problems sorted out with the php mailform etc. I am now getting errors that the "orders.csv" file cannot be opened?!

I tried various modes for the CHMOD'ing ie: 644, 755 etc but I cannot still figure out where the proble might be...???

Do you think you could help? Thanks! :?

http://ski.voices-of-europe.de/books.htm

I get the following echo after completing the mail form:


Warning: fopen("orders.csv", "a") - Permission denied in /home/www/voices-of-europe.de/subs/ski/htdocs/checkout.php on line 174

Warning: Failed opening '' for inclusion (include_path='.:/usr/share/php/PEAR:/usr/local/php') in /home/www/voices-of-europe.de/subs/ski/htdocs/checkout.php on line 81
Unable to open CSV file for writing. Your order has not been saved.


Warning: Failed opening '' for inclusion (include_path='.:/usr/share/php/PEAR:/usr/local/php') in /home/www/voices-of-europe.de/subs/ski/htdocs/checkout.php on line 85
Post Reply