Jump to content

newbie8899

Members
  • Posts

    14
  • Joined

  • Last visited

    Never

Everything posted by newbie8899

  1. I have try to replace the php5ts.dll with php5apache2.dll, but it still give me the same error.
  2. Hi, all, I have reinstall my php 5.2.6, apache 2.2.9 and mysql 5.0.24 to my windows server 2003 because i found that my website quite often cannot connected to mysql. But the worse thing is, after i reinstall, apache seems to be find, but when i login to my website, they web page keep displaying page cannot find. So I have restarted my windows server 2003. When startup, the error displaying apache httpd.exe has encouted a problem and needed to be closed. Then the detail of Error Signature showing this: szAppName : httpd.exe szAppVer : 2.2.9.0 szModName : php5ts.dll. I have uninstall the latest version of php and apache, but still the same problem.. Anyone please help? It is very urgent as the client cannot access the server.. Thank you very much.
  3. Hi all, i start my php page with session_start(); I have a form using 'POST' and send the page to another page. But when i click back button, all the data i have entered before all lost. I tried to change the 'POST' to 'GET', but the result still the same, it still give me the empty fields when i click the back button. Anyone please help. Thanks in advance.
  4. oo..i know what u mean.. thanks thanks.. is working now.. thanks a lot.
  5. Sorry, actually that is typo.. in my coding it is ''.. but it doesnt work.
  6. Hi, all, I have a problem here.. for example in the first page - page1.php, i have a form. The form have LoginID and Pwd. when i click at the submit button, it will collect the LoginID and Pwd into the session variable.. then will link to page2.php. The problem i face now is i cannot get the session variable in page2.php.. below is my code. <?php session_start(); // start up your PHP session! $_SESSION["LoginID"] = $_REQUEST["LoginID"]; $_SESSION["Pwd"] = $_REQUEST["Pwd"]; ?> <form name="form1" action="page2.php" method="POST"> <table> <tr> <td>Login ID:</td><td><input name="LoginID" type="text" id="LoginID" size="20" </td> </tr> <tr> <td>Password:</td><td><input name="Pwd" type="text" id="Pwd" size="20" </td> </tr> <tr> <td><input name="submit" type="submit" id="submit" size="20" </td> </tr> </form> Then in the second page, page2.php i do this: <?php session_start(); echo $_SESSION[‘LoginID]; echo $_SESSION[‘Pwd]; ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body> </body> </html> but the session variable it got is empty.. anyone.. please help.. thank you in advance.
  7. Hi, all.. is it possible to put all mysql command into a text file, while in our php file, whenever we need to execute the sql command, we just call the text file and indicate which command we want to execute? is it possible? coz i notice that if our php file is large, it will be very messy and hardly to see with all the sql command sketter around. please, if anybody know how to do this? any sample? thanks
  8. I've tried all kind of email acc, but no 1 can be received.. is it possible that the problem of configuration in php.ini? i totally have no idea.. even though i already remove the @ for mail, but still no error msg
  9. Hi, all.. i have a big problem here. I wish to send email through the php script.. but i don know what's wrong with it. it stated there email sent.. but i cannot receive any email. Can anybody tell me what probably did i do wrong? below is my test script which i use to test send the email. <?php //define the receiver of the email $to = 'address@hotmail.com'; //define the subject of the email $subject = 'Test email'; //define the message to be sent. Each line should be separated with \n $message = "Hello World!\n\nThis is my first mail."; //define the headers we want passed. Note that they are separated with \r\n $headers = "From: webmaster@example.com\r\nReply-To: webmaster@example.com"; //send the email $mail_sent = @mail( $to, $subject, $message, $headers ); //if the message is sent successfully print "Mail sent". Otherwise print "Mail failed" echo $mail_sent ? "Mail sent" : "Mail failed"; ?> after i run the script, the browser showing Mail sent. but when i check my email account, i did not receive any of this email. :'(
  10. thanks guys.. u all really help me a lot.
  11. Thanks guy, thanks for ur fast reply.
  12. Hi all.. i m not sure shud i post this question to html forum or php as it needs the php to select the value from the db. so i decide to post it here. I have a problem with the <select></select> stuff. my problem is like this. If i have a set of pull down menu using <select></select> the values in it are: orange, apple and banana. at the beginning, i will pull out the value from the db.. for example, if the value pull out from the db table is banana. so i want my <select></select> in the form to select the banana instead of keep selecting the 1st item.. how am i going to do this? thanks a lot
  13. yaya.. i really make a big mistake. shud use session_id(). thanks a lot guys.. u guys really help me a lot.
  14. Hi, I am a newbie in PHP. I am trying to work out with PHP session id.. but there r something confuse me.. can someone explain to me please.. thanks first. as i m using this code: session_start(); if(isset($_SESSION['views'])) $_SESSION['views'] = $_SESSION['views']+ 1; else $_SESSION['views'] = 1; echo "views = ". $_SESSION['views']; As what i see here, once i refresh the browser, the session id will increase 1. the problem is, if i 1 to pass the session id from the first page till the last page, but half way the user refresh the browser, then the session id will keep on changing.. so how? besides, when i open 2 different browsers from different pc, the session id for both pc will all showing 1. If in this case, lets say i would like to save the session id into the db, then it will become 2 same session id in the table? i thought the session id will be unique? i really confuse with this session id stuff. can anyone help to explain how exactly the session id run and what is the actual purpose for this.. thanks a lot.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.