[PHP] Re: getting value of item in list box.

2003-08-18 Thread KK
check out http://javascript.internet.com/forms/auto-drop-down.html "Tim Winters" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello, > > I have a PHP page which pulls a bunch of data from a mySQL DB. I have 2 > list boxes in a form. One is populated automatically by my PHP code.

[PHP] Re: A simple request from a simple person

2003-06-12 Thread KK
header("location: mypage.php"); "Mark Roberts" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Obviously relatively new to php I would like to know how to do a simple redirect from a php page. For example in ASP I do response.redirect("thispage.com") Want to do the same thing i

[PHP] Re: File upload and permissions

2003-03-06 Thread KK
yeah, unfortunately 777 is the way to go. "Charles Kline" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I have a form which uploads a file to my server. The files that are > uploaded will be .doc files and will need to be able to be downloaded > from a web page. > > My script works

[PHP] Re: fopen

2003-03-05 Thread KK
the @ before the fopen just tells php to suppress the error message if it can't open the file. that's all it does. "John Taylor-Johnston" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > #http://www.php.net/manual/en/function.fopen.php > > $contents = fopen ("/home/pathto/file.txt", "

[PHP] Re: dealing with dates

2003-03-03 Thread KK
you should make the column for the time posted in your table to be Date/time. mysql stores it in this format: 2003-02-24 12:43:45 (year-month-day hours:minutes:seconds) to allow the current date/time to be inserted into this column date("Y-m-d G:i:s") if you want to DISPLAY it in this date format

[PHP] Re: mail function works, but always from nobody@localhost!

2003-03-03 Thread KK
add an extra variable to your mail function. php takes an optional 4th parameter, which adds features like "From" and "Reply". example: $extra = "From: $name <$email>\r\n\Reply-To: $email"; so the mail function would be: mail($recipient,$subject,$body,$extra); Hope this helped. "Ml" <[EMAIL PRO

[PHP] Re: Newbie's question about \n

2002-07-22 Thread KK Lee
Dear ALL, Thanks. KK Kk Lee ¼g¤J¡G > Dear ALL, > > It seems that i have a very silly problem. > I can't get the new line escape character to work. > the following is my SIMPLE script and corresponding output. > > PHP script: > "-//W3C//DTD HTML 4.0 Tra

[PHP] Newbie's question about \n

2002-07-22 Thread KK Lee
s is a second line regards, KK -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php