[PHP] preventing multiple submissions

2001-11-26 Thread Derek Mailer
I have a problem with a form on my website. it's part of a shopping cart application, whereby the form consists of a list of products and the user enters the quantity they require of each product in the field provided. Everything works okay except for the fact that if someone hits the submit

Re: [PHP] htpasswd

2001-10-25 Thread Derek Mailer
go to http://www.php.net/manual/en/ref.filesystem.php and read up on things like fopen, fclose, etc. This will explain how to write to any kind of file including htpasswd files if necessary. Good Luck Derek - Original Message - From: "Gary" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Se

Re: [PHP] Re: Loading message

2001-10-25 Thread Derek Mailer
to be a slow PHP script that's the problem. Hope this helps, Derek - Original Message - From: "Daniel Alsén" <[EMAIL PROTECTED]> To: "Derek Mailer" <[EMAIL PROTECTED]> Sent: Thursday, October 25, 2001 11:45 AM Subject: RE: [PHP] Re: Loading message

Re: [PHP] Re: Loading message

2001-10-25 Thread Derek Mailer
I suspect that PHP does all of it's work and, only when complete, will it send the generated html to the client. No matter what you try and do there's no way you can output the progress of your script to the browser while it is still being parsed. I could be wrong, but this is my understanding o

[PHP] Re: [PHP-DB] LDAP multiple actions in modify?

2001-10-18 Thread Derek Mailer
If this suggestion isn't what you're after then it's probably because I don't fully understand your problem, but here goes... if you are simply replacing an old password with a new one in a directory entry you don't need to delete and then add; instead you would use... ldap_mod_replace to replac

Re: [PHP] Sessions Variables and refresh pages

2001-10-04 Thread Derek Mailer
particular application. Cheers the noo, Derek - Original Message - From: "Rasmus Lerdorf" <[EMAIL PROTECTED]> To: "Karina" <[EMAIL PROTECTED]> Cc: "Derek Mailer" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, October 03, 2001

Re: [PHP] Sessions Variables and refresh pages

2001-10-03 Thread Derek Mailer
I'm not sure I fully understand the problem, but I think I can have a guess at it based on my past experiences... if you have a php page that starts a session with session_start() and, say for example, you then try and echo the session id with session_id() it will not be displayed on screen until

Re: [PHP] Building Dynamic Value list using ohp

2001-09-26 Thread Derek Mailer
what's the error you're getting now? if you aren't getting any error, but it just isn't working try something like...(note that I haven't tested this code). $drop_down_list = ""; $link = mysql_connect ('localhost', '', '') or die ("Could not select db"); mysql_select_db ('Heronsql') or

Re: [PHP] Building Dynamic Value list using ohp

2001-09-26 Thread Derek Mailer
oops...I was going to add... 2) - $result = mysql_query($query, $mysql_link); doesn't require the $mysql_link argument, try $result = mysql_query($query); Another general comment is that you have copied a bit of your code that seems to include the root password to mysql. Not a good idea - yo

Re: [PHP] Building Dynamic Value list using ohp

2001-09-26 Thread Derek Mailer
A couple of things about the code... 1) - mysql_connect ('localhost', 'root', 'monty'); should be $mysql_link = mysql_connect ('localhost', 'root', 'monty'); 2) - You only pass you can read more about it all and copy and adapt the code snippter from http://www.php.net/manual/en/ref.mysql.