Re: [PHP] Problem with backslashes disappearing

2002-03-06 Thread Richard Crawford
Have you tried escaping the backslash character with another one: \\? On Wed, 2002-03-06 at 06:34, Torkil Johnsen wrote: Hello! I have a simple form taking in some user text input and storing it in a mysql database. My problem is that PHP strips off any backslashes in the text. I realize

Re: [PHP] Passing verables along from Java Scripts

2002-03-02 Thread Richard Crawford
Variables can only be passed to a PHP script via POST or GET. So if you want to pass JavaScript variables to a PHP script, you must do it that way. For your second question, look for the window.open() function in JavaScript. Your code would look something like this: form input type=button

Re: [PHP] nullifying php and html tags?

2002-02-18 Thread Richard Crawford
Would strip_tags() do? On Mon, 2002-02-18 at 21:47, Police Trainee wrote: Hello. I just finished creating a simple input form in which the contents of a textarea get written to a file which in turn gets read by a particular page. is there anyway to disable any html or php tags that the user

Re: [PHP] What Do You Think?

2002-02-15 Thread Richard Crawford
I'd be much more interested in microbreweries, though. Most commercial breweries like Anheuser Busch and Coors don't brew beer. Send some of their product to a lab, and the results will say something like, Your horse has diabetes. Hmm. I'd also be interested in a Guinness Finder site. Plug

Re: [PHP] What Do You Think?

2002-02-15 Thread Richard Crawford
Tetley's is good stuff. Try Old Nick. Only beer I've found that needs a chaser. On Fri, 2002-02-15 at 11:52, Erik Price wrote: On Friday, February 15, 2002, at 02:40 PM, Richard Crawford wrote: Hmm. I'd also be interested in a Guinness Finder site. Plug in your zip code, and you

Re: [PHP] What Do You Think?

2002-02-15 Thread Richard Crawford
-togethers. It's now 4:30, so I'm raising one to you all - Miles At 11:56 AM 2/15/2002 -0800, Richard Crawford wrote: Tetley's is good stuff. Try Old Nick. Only beer I've found that needs a chaser. On Fri, 2002-02-15 at 11:52, Erik Price wrote: On Friday, February 15, 2002, at 02:40

Re: [PHP] how to pass value from popup window to php program

2002-02-06 Thread Richard Crawford
There is no way of passing a variable from JS to PHP without sending something back to the server or using a cookie. I haven't followed the thread at all, but if I needed to pass a value from a pop-up window to a PHP program, I'd probably do something like this: In the pop-up window, once the

Re: [PHP] header() and frameset

2002-02-01 Thread Richard Crawford
Clarification: this will only work if you put the script inside the page that the header() command points to. If you put the header() command in the same document with this script, then the header() command won't work, since you'll be sending output to the browser. Here's a thought. Use the

Re: [PHP] ereg et all - new question..

2002-01-31 Thread Richard Crawford
Seems like that makes it a LOT easier. Use eregi_relace() instead of ereg_replace(). eregi allows for case-insensitivity. Try eregi_replace(this,b\\1/b,$str); That should do it, though I haven't tried it myself. On Thu, 2002-01-31 at 14:14, Edward van Bilderbeek - Bean IT wrote:

Re: [PHP] ereg et all - new question..

2002-01-31 Thread Richard Crawford
Sorry, that should be: eregi_replace((this),b\\1/b,$str); On Thu, 2002-01-31 at 14:20, Richard Crawford wrote: Seems like that makes it a LOT easier. Use eregi_relace() instead of ereg_replace(). eregi allows for case-insensitivity. Try eregi_replace(this,b\\1/b,$str

Re: [PHP] ereg et all - new question..

2002-01-31 Thread Richard Crawford
- Original Message - From: Richard Crawford [EMAIL PROTECTED] To: Edward van Bilderbeek - Bean IT [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, January 31, 2002 11:20 PM Subject: Re: [PHP] ereg et all - new question.. Seems like that makes it a LOT easier. Use

Re: [PHP] Got a problem I cant figure out

2002-01-27 Thread Richard Crawford
Very likely a missing closing brace somewhere in your program. Look for unpaired {'s or ('s or ['s. On Sun, 2002-01-27 at 20:55, Ben Turner wrote: Parse error: parse error in /var/www/docs/tacklebox/404handler.php on line 47 I am receiving this error on my page but the problem is that line

Re: [PHP] getting a LAMP job in this economy

2002-01-24 Thread Richard Crawford
Heh. I got my first web development job back when pretty much anyone could hang a shingle outside their door and call themselves a web developer. My company worked in a Linux/PHP/Perl/Oracle environment. While there I learned quite a bit about Perl and PHP and connecting both of them to

Re: [PHP] PHP-JavaScript

2002-01-21 Thread Richard Crawford
in a link, but personally I wouldn't rely on JS that far. Tim www.chessish.com http://www.chessish.com -- From: Richard Crawford [SMTP:[EMAIL PROTECTED]] Sent: 20 January 2002 23:32 To: Mårten Andersson Cc: [EMAIL PROTECTED] Subject: Re

Re: [PHP] PHP-JavaScript

2002-01-21 Thread Richard Crawford
Message- From: Richard Crawford [SMTP:[EMAIL PROTECTED]] Sent: 21 January 2002 15:59 To: Tim Ward Cc: Mårten Andersson; [EMAIL PROTECTED] Subject: Re: [PHP] PHP-JavaScript Unfortunately, that won't work if the value of the JS variable needs to change dynamically based on user interaction

Re: [PHP] How should I cache database data for php?

2002-01-21 Thread Richard Crawford
Are you sure that cacheing database data is the right way to approach the problem? How about using a cron job to write static HTML pages from live data? You could set up such a system to run every few hours or so. I haven't done that in PHP, but it's something I'm looking at doing for a

Re: [PHP] How should I cache database data for php?

2002-01-21 Thread Richard Crawford
Even with straight HTML, a server's load capacity is not infinite. If my own server, an old Pentium with 4 GB of hard drive space, and which serves nothing but static HTML pages, got hit with more than a couple hundred hits in a short period of time, it would bomb. I must be misunderstanding

Re: [PHP] How should I cache database data for php?

2002-01-21 Thread Richard Crawford
DL Neil wrote: Even with straight HTML, a server's load capacity is not infinite. If my own server, an old Pentium with 4 GB of hard drive space, and which serves nothing but static HTML pages, got hit with more than a couple hundred hits in a short period of time, it would bomb. I must be

Re: [PHP] PHP-JavaScript

2002-01-20 Thread Richard Crawford
In a word... No. Well... No. Mårten Andersson wrote: Is it posible to get values from javascript to PHP? Without having to post the variables.. Thanks //Mårten _ Chatta med vänner online, prova MSN Messenger:

Re: [PHP] /19, the / doesn't work??

2002-01-18 Thread Richard Crawford
That's weird. But try '\/19; use the back-slash to escape the control character. Scott Fletcher wrote: Hi! When I put the data, /19; into a PHP variable, I found that it produce only 9 in the variable. PHP probably think that /1 is like /r, /n, etc. So, what substitute do I

Re: [PHP] quick and easy(php newbie)

2002-01-18 Thread Richard Crawford
Try something like: $Entry = $openingEntry . $numberAtt . \ . $myNumber . \ . $nameAtt... and so on. travis wrote: just a quick syntax question: here is my php ? $openingItemTag = item\n; $openingEntry = entry ; $numberAtt = number=; $nameAtt = name=; $dateAtt = date=; $messageAtt

Re: [PHP] printing html

2002-01-18 Thread Richard Crawford
You might have better luck using the Print command from MSIE or Netscape, something which allows you to set up printer parameters. fitiux wrote: Hi friends, =) someone have experience using printer functions ? I mean... I would like to print a php generated page with a link within

Re: [PHP] how to send to URL on if statement?

2002-01-18 Thread Richard Crawford
If you have already sent output to the browser, then you won't be able to use the PHP header() command to redirect the browser. There are a couple of ways around this, though; look into the META tag in HTML, or you can use JavaScript to redirect the browser. If what you want to do is send all

Re: [PHP] RTFM

2002-01-18 Thread Richard Crawford
Consider yourself fried. ;-) Seriously, though, I think that there are more advanced PHP lists that would probably be more to your liking. Try doing a search on php.net or yahoogroups.com for something more technical. I, personally, joined this list just over a year ago when I was assigned

Re: [PHP] PHP Security - view source code

2002-01-16 Thread Richard Crawford
Well, if you do View Source on any browser, it will only show the source code of the HTML that the page has rendered, not the PHP/Perl/ASP/Cold Fusion/whatever that was used to generate the HTML code. So using View Source will never show you the programming behind the HTML. That said, I

Re: [PHP] PHP HTML: newbie question

2002-01-16 Thread Richard Crawford
Just out of curiosity, what is the name of your page? It might be as simple as making sure it has a .php extension on your page. If it has an .html extension it won't work properly. Just a thought; I could be wrong about this. Nick Wilson wrote: * On 16-01-02 at 22:29 * Richard

Re: [PHP] Newbie database question

2002-01-13 Thread Richard Crawford
Which database are you using? Dean Ouellette wrote: I am entering info from form into database, is there a way to check say firstname, lastname and address to see if it is a duplicate to what is already in database and if it is then just enter any new information they may enter and not

Re: [PHP] Newbie database question

2002-01-13 Thread Richard Crawford
Ouellette wrote: MySql At 10:10 AM 1/13/2002 -0800, Richard Crawford wrote: Which database are you using? Dean Ouellette wrote: I am entering info from form into database, is there a way to check say firstname, lastname and address to see if it is a duplicate to what is already

Re: [PHP] Form Problem

2002-01-09 Thread Richard Crawford
The presence of the final / in the line makes the page XHTML compliant. It should be left in, and it has no effect whatsoever on the functionality of the input tag. In fact, it should be included in the input type=text tag as well. I can't find a darn thing wrong with your script. You

Re: [PHP] Maybe OT but I was wondering....

2002-01-08 Thread Richard Crawford
I believe that this is something you actually set in your webserver. Which webserver are you running? Check out the documentation for that. Ben Turner wrote: I am trying to set up a completely dynamic site using php and a mysql backend. I am trying to find somewhere that I can identify a

Re: [PHP] link variables space problem in netscape

2001-04-24 Thread Richard Crawford
Two words: URL Encode. Original Message On 4/24/01, 11:23:02 AM, Mark Lo [EMAIL PROTECTED] wrote regarding [PHP] link variables space problem in netscape: Hi, I am having a problem in link variables in netscape. etc. www.domain.com?xx=1xxx=2=mark loxxxee=polol if the

Re: [PHP] if... then... else with HTML

2001-04-23 Thread Richard Crawford
Alternatively, and this is what I would do because it would be easier to maintain should you want to change the content later on, you could use includes as per the following: ?php print(html\nhead\ntitleTry This/title\n/head\nbody\n); if(condition)

Re: [PHP] insert data to mysql

2001-04-23 Thread Richard Crawford
Concatenate your string. ...VALUES ('.$client.','.$contact.') (etc.) Or just replace the double-quotes within the string with single quotes. That should do it. Original Message On 4/23/01, 10:32:47 AM, shawn [EMAIL PROTECTED] wrote regarding [PHP] insert data to mysql: Hello, I am

[PHP] Single Quotes in Oracle Queries

2001-04-11 Thread Richard Crawford
Before we go about writing new functions to handle single quotes for our Phorum reengineering project, I need to know if there is a way for PHP to easily handle the issue of passing strings to a PL/SQL script, which requires that single quotes be doubled up: that "I don't know" is properly

RE: [PHP] Single Quotes in Oracle Queries

2001-04-11 Thread Richard Crawford
rom a FORM, then magic_quotes_sybase (in php.ini) is your friend. If from elsewhere, see magic_quotes_runtime for possible help (also in php.ini). Kirk -Original Message- From: Richard Crawford [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 11, 2001 12:05 PM To: [EMAIL PROTECTED] Sub