[PHP] A PHP UPDATE problem

2003-03-08 Thread Terry Lau
Hello, I am creating a polling system. Its operation likes this: when the people vote the item, it updates the database by adding 1 for the item automatically. The part of code is showed here: $colname_rsAddVote = "1"; if (isset($HTTP_POST_VARS['Vote'])) { $colname_rsAddVote = (get_magic_quotes_

[PHP] mail() in Linux

2003-03-04 Thread Terry Lau
Hello, I want to use the mail() in my Linux computer.But I don't know how to set the php.ini file to enable it.I am using the SMTP server provided by ISP. Do I need to setup my own mail server? Thanks! Terry _ ¤µ¤é¬P®y http://

[PHP] cookie problem..

2003-02-21 Thread Terry Lau
Hello, I want to set a cookie when I enter a text into the text field, and it shows the text I submitted immediately, thus I write a sample php code like this: (I set the text field is Name and the data will be sent to another page) In another page, I insert in the beginning of the code.

[PHP] cookie problem....

2003-02-13 Thread Terry Lau
Hello, I created a PHP page that included cookie, here is the PHP code: if (isset($HTTP_POST_VARS['Name'])) { setcookie("Name", $HTTP_POST_VARS['Name'], time()+86400*10); } Untitled Document Name: But when I called the cookie variable in another page, it showed "Noti

[PHP] I have a problem while installing...

2003-01-09 Thread Terry Lau
Hello, I'm using Red Hat Linux 8.0. The Apache Server 2.0 and php 4.2.2 are installed when I install Linux. The server is installed in /var/. So, I don't know how to follow the installation instructions described in your web to set up php. Do I need to install apache and php again? Furthermore,