RE: [PHP] what is wrong with this sniplet?
Hi Jacky, The problem is a HTML one. Use "http://" followed by the address in your a href tag. Regards, @lvin -Original Message- From: Jacky [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 01, 2001 5:40 AM To: [EMAIL PROTECTED] Subject: [PHP] what is wrong with this sniplet? people, I tried to write out email using sniplet below, the email will write out the hyper link so that reciever can click on the link to go to the page. What happen is that the reciever recieve the actual link instead of the hyper link I made, so I wonder what did I do wrong. I have mad sure that the email software I used to test can read html format ( I use outlook express). $mailTo = "[EMAIL PROTECTED]"; $mailSubject = "test"; $mailBody= "Dear sir, \n\n"; $mailBody= "Below is the link you can click on, \n\n"; $mailBody .= "htmlbodyPlease Click a href=\"www.php.net\"Here/a/body/html to view the request details"; $mailHeaders = "From: [EMAIL PROTECTED]\n"; mail($mailTo, $mailSubject, $mailBody, $mailHeaders); Jack [EMAIL PROTECTED] "There is nothing more rewarding than reaching the goal you set for yourself" -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] what is wrong with this sniplet?
Sorry, It was the mistyping. i actually put http:// in the a href. I just forgot to type it in the mail. So what else could it be? Jack [EMAIL PROTECTED] "There is nothing more rewarding than reaching the goal you set for yourself" - Original Message - From: Alvin Tan [EMAIL PROTECTED] To: Jacky [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, February 28, 2001 3:39 AM Subject: RE: [PHP] what is wrong with this sniplet? Hi Jacky, The problem is a HTML one. Use "http://" followed by the address in your a href tag. Regards, @lvin -Original Message- From: Jacky [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 01, 2001 5:40 AM To: [EMAIL PROTECTED] Subject: [PHP] what is wrong with this sniplet? people, I tried to write out email using sniplet below, the email will write out the hyper link so that reciever can click on the link to go to the page. What happen is that the reciever recieve the actual link instead of the hyper link I made, so I wonder what did I do wrong. I have mad sure that the email software I used to test can read html format ( I use outlook express). $mailTo = "[EMAIL PROTECTED]"; $mailSubject = "test"; $mailBody= "Dear sir, \n\n"; $mailBody= "Below is the link you can click on, \n\n"; $mailBody .= "htmlbodyPlease Click a href=\"www.php.net\"Here/a/body/html to view the request details"; $mailHeaders = "From: [EMAIL PROTECTED]\n"; mail($mailTo, $mailSubject, $mailBody, $mailHeaders); Jack [EMAIL PROTECTED] "There is nothing more rewarding than reaching the goal you set for yourself" -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] what is wrong with this sniplet?
I am not sure but I think may be it is because whatever the mail() write out in the body part will be recognised as text message, so even if we try to make it to write out the HTML syntax, it won't work. It could be real stupid to make such a notice but I can't think of anything else. Can you? Jack [EMAIL PROTECTED] "There is nothing more rewarding than reaching the goal you set for yourself" - Original Message - From: Alvin Tan [EMAIL PROTECTED] To: Jacky [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, February 28, 2001 3:39 AM Subject: RE: [PHP] what is wrong with this sniplet? Hi Jacky, The problem is a HTML one. Use "http://" followed by the address in your a href tag. Regards, @lvin -Original Message- From: Jacky [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 01, 2001 5:40 AM To: [EMAIL PROTECTED] Subject: [PHP] what is wrong with this sniplet? people, I tried to write out email using sniplet below, the email will write out the hyper link so that reciever can click on the link to go to the page. What happen is that the reciever recieve the actual link instead of the hyper link I made, so I wonder what did I do wrong. I have mad sure that the email software I used to test can read html format ( I use outlook express). $mailTo = "[EMAIL PROTECTED]"; $mailSubject = "test"; $mailBody= "Dear sir, \n\n"; $mailBody= "Below is the link you can click on, \n\n"; $mailBody .= "htmlbodyPlease Click a href=\"www.php.net\"Here/a/body/html to view the request details"; $mailHeaders = "From: [EMAIL PROTECTED]\n"; mail($mailTo, $mailSubject, $mailBody, $mailHeaders); Jack [EMAIL PROTECTED] "There is nothing more rewarding than reaching the goal you set for yourself" -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] what is wrong with this sniplet?
From: Jacky [mailto:[EMAIL PROTECTED]] people, I tried to write out email using sniplet below, the email will write out the hyper link so that reciever can click on the link to go to the page. What happen is that the reciever recieve the actual link instead of the hyper link I made, so I wonder what did I do wrong. I have mad sure that the email software I used to test can read html format ( I use outlook express). $mailTo = "[EMAIL PROTECTED]"; $mailSubject = "test"; $mailBody= "Dear sir, \n\n"; $mailBody= "Below is the link you can click on, \n\n"; $mailBody .= "htmlbodyPlease Click a href=\"www.php.net\"Here/a/body/html to view the request details"; $mailHeaders = "From: [EMAIL PROTECTED]\n"; mail($mailTo, $mailSubject, $mailBody, $mailHeaders); You need to tell the mail reader that the message is HTML, using a Content-Type header. Plus your message is not well-formed HTML anyway (message should be an HTML document, not HTML inside plain text). Try this: ?php $mailTo = "[EMAIL PROTECTED]"; $mailSubject = "test"; $mailBody= "htmlbodyDear sir, \n\n"; $mailBody .= "Below is the link you can click on, \n\n"; $mailBody .= "Please Click a href=\"http://www.php.net\"Here/a to view the request details/body/html"; $mailHeaders = "From: mailto:[EMAIL PROTECTED]\n"; $mailHeaders .= "Content-Type: text/html\n"; mail($mailTo, $mailSubject, $mailBody, $mailHeaders); ? Cheers Simon Garner -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] what is wrong with this sniplet?
On Wednesday 28 February 2001 22:40, you wrote: people, I tried to write out email using sniplet below, the email will write out the hyper link so that reciever can click on the link to go to the page. What happen is that the reciever recieve the actual link instead of the hyper link I made, so I wonder what did I do wrong. I have mad sure that the email software I used to test can read html format ( I use outlook express). $mailTo = "[EMAIL PROTECTED]"; $mailSubject = "test"; $mailBody= "Dear sir, \n\n"; $mailBody= "Below is the link you can click on, \n\n"; $mailBody .= "htmlbodyPlease Click a href=\"www.php.net\"Here/a/body/html to view the request details"; $mailHeaders = "From: [EMAIL PROTECTED]\n"; mail($mailTo, $mailSubject, $mailBody, $mailHeaders); Add a "Content-Type: text/html" to $mailHeaders ( add a http:// to the link) -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) CPU not found. retry, abort, ignore? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] what is wrong with this sniplet?
You don't need to write a href=. for outlook , if you put space before and after URL unless you want to send HTML mail. Outlook thinks it's a URL if you write correct URL and many other UMA treats URL or Email address as link. i.e. www.php.net is not correct URL, my outlook express thinks it is a URL though... http://www.php.net/ is correct URL and you should be able to click it to open it. If you want to send HTML mail, take a look at whole HTML formatted mail including headers in your mail box. You will get how to compose HTML formatted mail. Regards, -- Yasuo Ohgaki - Original Message - From: "Jacky" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, March 01, 2001 6:40 AM Subject: [PHP] what is wrong with this sniplet? people, I tried to write out email using sniplet below, the email will write out the hyper link so that reciever can click on the link to go to the page. What happen is that the reciever recieve the actual link instead of the hyper link I made, so I wonder what did I do wrong. I have mad sure that the email software I used to test can read html format ( I use outlook express). $mailTo = "[EMAIL PROTECTED]"; $mailSubject = "test"; $mailBody= "Dear sir, \n\n"; $mailBody= "Below is the link you can click on, \n\n"; $mailBody .= "htmlbodyPlease Click a href=\"www.php.net\"Here/a/body/html to view the request details"; $mailHeaders = "From: [EMAIL PROTECTED]\n"; mail($mailTo, $mailSubject, $mailBody, $mailHeaders); Jack [EMAIL PROTECTED] "There is nothing more rewarding than reaching the goal you set for yourself" -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] what is wrong about this sniplet?
HI Jack, What is the variable $HotelID ? mysql_insert_id - has an optional parameter: link_identifier (the database handle) So in this case, is $HotelID your database handle? If not, then just call mysql_insert_id() without any parameters. Otherwise, it is always best to pass around the database handle so that you know which connection you are using. Sam -Original Message- From: Jacky@lilst [mailto:[EMAIL PROTECTED]] Sent: Thursday, 25 January 2001 03:17 To: [EMAIL PROTECTED] Subject: [PHP] what is wrong about this sniplet? I have the sniplet to run teh query at the page to insert data as shown below. After it is run, there was en error said something like "Mysql warning, 0 ( zero) is not Mysql index" and the error point to the line using mysql_insert_id($HotelID); My limited experience cannot tell me what should I be doing in order to get what I need. Any thought? ** //insert Hotel detail $insertHotel = "INSERT INTO Hoteldetail (HotelName,HotelLocation, HotelCountry,HotelPostcode, HotelTelephone,Hotelfax,HotelURL, HotelContactFirstName,HotelContactLastName, HotelRoomProvided, HotelEmail) VALUES ('$HotelName', '$HotelLocation', '$HotelCountry', '$HotelPostcode', '$Hoteltelephone', '$Hotelfax', '$HotelURL', '$HotelContactFirstName', '$HotelContactLastName', '$HotelRoomProvided', '$HotelEmail')"; $resultHotel = mysql_query($insertHotel); // retrive latest HotelID $latestHotelID = mysql_insert_id($HotelID); ** cheers Jack [EMAIL PROTECTED] "There is nothing more rewarding than reaching the goal you set for yourself" -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] what is wrong about this sniplet?
The variable $HotelID is the hotelId of the record that I just inserted into database and I want to retrive the Id of that record to insert into another table. what is the correct syntax of using mysql_insert_id in this case? Jack [EMAIL PROTECTED] "There is nothing more rewarding than reaching the goal you set for yourself" - Original Message - From: Samantha Savvakis [EMAIL PROTECTED] To: Jacky@lilst [EMAIL PROTECTED] Cc: PHP General [EMAIL PROTECTED] Sent: Tuesday, January 23, 2001 10:20 PM Subject: RE: [PHP] what is wrong about this sniplet? HI Jack, What is the variable $HotelID ? mysql_insert_id - has an optional parameter: link_identifier (the database handle) So in this case, is $HotelID your database handle? If not, then just call mysql_insert_id() without any parameters. Otherwise, it is always best to pass around the database handle so that you know which connection you are using. Sam -Original Message- From: Jacky@lilst [mailto:[EMAIL PROTECTED]] Sent: Thursday, 25 January 2001 03:17 To: [EMAIL PROTECTED] Subject: [PHP] what is wrong about this sniplet? I have the sniplet to run teh query at the page to insert data as shown below. After it is run, there was en error said something like "Mysql warning, 0 ( zero) is not Mysql index" and the error point to the line using mysql_insert_id($HotelID); My limited experience cannot tell me what should I be doing in order to get what I need. Any thought? ** file://insert Hotel detail $insertHotel = "INSERT INTO Hoteldetail (HotelName,HotelLocation, HotelCountry,HotelPostcode, HotelTelephone,Hotelfax,HotelURL, HotelContactFirstName,HotelContactLastName, HotelRoomProvided, HotelEmail) VALUES ('$HotelName', '$HotelLocation', '$HotelCountry', '$HotelPostcode', '$Hoteltelephone', '$Hotelfax', '$HotelURL', '$HotelContactFirstName', '$HotelContactLastName', '$HotelRoomProvided', '$HotelEmail')"; $resultHotel = mysql_query($insertHotel); // retrive latest HotelID $latestHotelID = mysql_insert_id($HotelID); ** cheers Jack [EMAIL PROTECTED] "There is nothing more rewarding than reaching the goal you set for yourself" -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] what is wrong with this sniplet?
print("input type='button' value='back' onclick='self.history.back()';"); lacks a at the end of the input-tag print("input type='button' value='back' onclick='self.history.back()';"); - Original Message - From: "Jacky@lilst" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 16, 2001 11:28 PM Subject: [PHP] what is wrong with this sniplet? Hi people Looking for a piece of advice about what is wrong with this sniplet and what is the right one. I tried to write the html using print(""); as below: print("td"); print("input type='button' value='back' onclick='self.history.back()';"); print("/td"); what happen was that when the html page was generated, that specific part did not apear on the page, although the source can be seen using view source. What did I do wrong? cheers Jack [EMAIL PROTECTED] "There is nothing more rewarding than reaching the goal you set for yourself" -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] what is wrong with this sniplet?
I think it should be ... onClick='javascript:self.history.back()'... --- "Jacky@lilst" [EMAIL PROTECTED] wrote: Hi people Looking for a piece of advice about what is wrong with this sniplet and what is the right one. I tried to write the html using print(""); as below: print("td"); print("input type='button' value='back' onclick='self.history.back()';"); print("/td"); what happen was that when the html page was generated, that specific part did not apear on the page, although the source can be seen using view source. What did I do wrong? cheers Jack [EMAIL PROTECTED] "There is nothing more rewarding than reaching the goal you set for yourself" __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]