[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: ?php $colname_rsAddVote = 1; if (isset($HTTP_POST_VARS['Vote'])) { $colname_rsAddVote =

[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

[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: ?php if (isset($HTTP_POST_VARS['Name'])) { setcookie(name, $HTTP_POST_VARS['Name'], time()+86400*10); } echo $name; ? (I set the

[PHP] cookie problem....

2003-02-13 Thread Terry Lau
Hello, I created a PHP page that included cookie, here is the PHP code: ?php if (isset($HTTP_POST_VARS['Name'])) { setcookie(Name, $HTTP_POST_VARS['Name'], time()+86400*10); } html head titleUntitled Document/title meta http-equiv=Content-Type content=text/html; charset=big5 /head body form

[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?