[PHP] Help with escaping the # sign
I have a text input field in my form. I need the user to be able to enter something like: Hello, I need # help. After which they click on a submit button. The succeeding page then takes this text and tries to display it and tries to store Hello, I need # help in a varchar field in a mysql table column. The mysql database is truncating the # sign and the text succeeding the # sign. Also, absolutly no text is being diplayed on the succeeding web page. I've tried using addslashes() and I was warned against using htmlentities(). Also, I'm not sure if I'm dealing with 2 issues: A mysql issue and a html issue. Or, am I dealing with one issue: A mysql issue or an HTML issue. Thank you, John __ Terrorist Attacks on U.S. - How can you help? Donate cash, emergency relief information http://dailynews.yahoo.com/fc/US/Emergency_Information/ -- 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] Need help. please
I'm sorry for those who my have responded to my last email. I thought I had plenty of room in my email client, but I forgot to delete my trash, so I did not get any responses. So, I'm going to restate my initial problem. Any help will be greatly appreciated. Thanks again I have a text input field in my form. I need the user to be able to enter something like: Hello, I need # help. After which they click on a submit button. The succeeding page then takes this text and tries to display it and tries to store Hello, I need # help in a varchar field in a mysql table column. The mysql database is truncating the # sign and the text succeeding the # sign. Also, absolutly no text is being diplayed on the succeeding web page. I've tried using addslashes() and I was warned against using htmlentities(). Also, I'm not sure if I'm dealing with 2 issues: A mysql issue and a html issue. Or, am I dealing with one issue: A mysql issue or an HTML issue. Thank you, John __ Terrorist Attacks on U.S. - How can you help? Donate cash, emergency relief information http://dailynews.yahoo.com/fc/US/Emergency_Information/ -- 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] help please with # sign
I have a text input field in my form. I need the user to be able to enter something like: Hello, I need # help. After which they click on a submit button. The succeeding page then takes this text and tries to display it and tries to store Hello, I need # help in a varchar field in a mysql table column. The mysql database is truncating the # sign and the text succeeding the # sign. Also, absolutly no text is being diplayed on the succeeding web page. I've tried using addslashes() and I was warned against using htmlentities(). Also, I'm not sure if I'm dealing with 2 issues: A mysql issue and a html issue. Or, am I dealing with one issue: A mysql issue or an HTML issue. Thank you, John __ Terrorist Attacks on U.S. - How can you help? Donate cash, emergency relief information http://dailynews.yahoo.com/fc/US/Emergency_Information/ -- 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] Is there no one who can help me out there.
I have a text input field in my form. I need the user to be able to enter something like: Hello, I need # help. After which they click on a submit button. The succeeding page then takes this text and tries to display it and tries to store Hello, I need # help in a varchar field in a mysql table column. The mysql database is truncating the # sign and the text succeeding the # sign. Also, absolutly no text is being diplayed on the succeeding web page. I've tried using addslashes() and I was warned against using htmlentities(). Also, I'm not sure if I'm dealing with 2 issues: A mysql issue and a html issue. Or, am I dealing with one issue: A mysql issue or an HTML issue. I know think my problem is that when I pass text to another page with the # sign, it's interpreting it as a comment. Is their any way to somehow escape the # sign. Thank you, John __ Terrorist Attacks on U.S. - How can you help? Donate cash, emergency relief information http://dailynews.yahoo.com/fc/US/Emergency_Information/ -- 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] Is there no one who can help me out there.
Thank you. This has been the biggest help so far. But, if it's a user entered string is their anyway to do this without having to parse the string and looking for the # sign and then reconstructing the string. That would be very difficult to do. I would appreciate any comments you might have. Thanks again John --- Rebecca Donley [EMAIL PROTECTED] wrote: John, I had a similar problem when passing # from one page to another as an html anchor. What worked for me was separating the # in quotes as follows: echo ?id= . $row[0] . # . strtolower($row[1]) . ''; When I did this I had no problem passing the entire string without the end being interpreted as a comment. Rebecca From: John Holcomb [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [PHP] Is there no one who can help me out there. Date: Tue, 18 Sep 2001 16:29:21 -0700 (PDT) I have a text input field in my form. I need the user to be able to enter something like: Hello, I need # help. After which they click on a submit button. The succeeding page then takes this text and tries to display it and tries to store Hello, I need # help in a varchar field in a mysql table column. The mysql database is truncating the # sign and the text succeeding the # sign. Also, absolutly no text is being diplayed on the succeeding web page. I've tried using addslashes() and I was warned against using htmlentities(). Also, I'm not sure if I'm dealing with 2 issues: A mysql issue and a html issue. Or, am I dealing with one issue: A mysql issue or an HTML issue. I know think my problem is that when I pass text to another page with the # sign, it's interpreting it as a comment. Is their any way to somehow escape the # sign. Thank you, John __ Terrorist Attacks on U.S. - How can you help? Donate cash, emergency relief information http://dailynews.yahoo.com/fc/US/Emergency_Information/ -- 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] _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp __ Terrorist Attacks on U.S. - How can you help? Donate cash, emergency relief information http://dailynews.yahoo.com/fc/US/Emergency_Information/ -- 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] Thank you Rebecca
Excellent idea Rebecca. I guess I'll have to resort to this because no one else out there seems to have ever had this problem. You've been a big help. Thank you for your ideas. John --- Rebecca Donley [EMAIL PROTECTED] wrote: What about writing a function to change all the # characters to something else (maybe something you would never see in the input) and then another to change them back again before entry into your db? I'm pretty new to PHP so I'm not sure what string functions are available but in ASP you could just use a replace function. Rebecca From: John Holcomb [EMAIL PROTECTED] To: Rebecca Donley [EMAIL PROTECTED] Subject: Re: [PHP] Is there no one who can help me out there. Date: Tue, 18 Sep 2001 16:48:29 -0700 (PDT) Thank you. This has been the biggest help so far. But, if it's a user entered string is their anyway to do this without having to parse the string and looking for the # sign and then reconstructing the string. That would be very difficult to do. I would appreciate any comments you might have. Thanks again John --- Rebecca Donley [EMAIL PROTECTED] wrote: John, I had a similar problem when passing # from one page to another as an html anchor. What worked for me was separating the # in quotes as follows: echo ?id= . $row[0] . # . strtolower($row[1]) . ''; When I did this I had no problem passing the entire string without the end being interpreted as a comment. Rebecca From: John Holcomb [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [PHP] Is there no one who can help me out there. Date: Tue, 18 Sep 2001 16:29:21 -0700 (PDT) I have a text input field in my form. I need the user to be able to enter something like: Hello, I need # help. After which they click on a submit button. The succeeding page then takes this text and tries to display it and tries to store Hello, I need # help in a varchar field in a mysql table column. The mysql database is truncating the # sign and the text succeeding the # sign. Also, absolutly no text is being diplayed on the succeeding web page. I've tried using addslashes() and I was warned against using htmlentities(). Also, I'm not sure if I'm dealing with 2 issues: A mysql issue and a html issue. Or, am I dealing with one issue: A mysql issue or an HTML issue. I know think my problem is that when I pass text to another page with the # sign, it's interpreting it as a comment. Is their any way to somehow escape the # sign. Thank you, John __ Terrorist Attacks on U.S. - How can you help? Donate cash, emergency relief information http://dailynews.yahoo.com/fc/US/Emergency_Information/ -- 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] _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp __ Terrorist Attacks on U.S. - How can you help? Donate cash, emergency relief information http://dailynews.yahoo.com/fc/US/Emergency_Information/ _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp __ Terrorist Attacks on U.S. - How can you help? Donate cash, emergency relief information http://dailynews.yahoo.com/fc/US/Emergency_Information/ -- 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] Help With Includes
Help please! I'm trying to use an include with my HTML file. Inside my HTML file I've tried: 1) script language=php include(/export/home/bayarea.net/htdocs/webclient.php3?id=2); /script AND 2) script language=php include(http://www.bayarea.net/webclient.php3?id=2;); /script According to the PHP documentation #2 should work, but I keep getting an error saying that it's unable to include the file. #1 works when I leave off ?id=2, but I need to pass it a variable. Any help would be appreciated. Thanks, John __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.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]
[PHP] Thank you for your help with Includes
Thanks. __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.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]
[PHP] Thank you all: Need help with formatting time
Thank you all for your help and immedate responses. The following worked: $current_time = date(h:ia, mktime(0,780)); Thank ye all again :) --- John Holcomb [EMAIL PROTECTED] wrote: Hello and thank you. I'm trying to find a function(method) or existing code taht takes the number of minutes that have passed in a day and returns the time of the day. For example: 780 minutes == 1pm, 0 minutes == 12am, etc,etc. so I'm looking for code that when you enter the number of minutes, it returns the time of day. example: $some_time = foo(780); print($some_time); //prints 1:00pm Thnaks again. __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/ __ Do You Yahoo!? Get personalized email addresses from 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]
[PHP] Help Please
Is there an environmental variable like in Active Server Pages ( HTTP_REFERRER ) that tells you the page you just came from. Thanks. __ Do You Yahoo!? Get personalized email addresses from 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]
[PHP] help: unzip files for php 3.0
The company that houses our servers only has php 3.0 installed. I need a function that can unzip files. Are there any methods(functions) that can handle this in php3.0 or any version of php that's before php 4.0. Thank you, John __ Do You Yahoo!? Get personalized email addresses from 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]