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 re
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="butt
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
where we have our
> weekly Linux get-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
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 Finde
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. Plu
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 fo
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 hea
otta look for it again
> :-)
>
> Thanks,
>
> Edward
>
> - Original Message -
> From: "Richard Crawford" <[EMAIL PROTECTED]>
> To: "Edward van Bilderbeek - Bean IT" <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Thursday,
Sorry, that should be:
eregi_replace("(this)","\\1",$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.
>
&
Seems like that makes it a LOT easier.
Use eregi_relace() instead of ereg_replace(). eregi allows for
case-insensitivity.
Try
eregi_replace("this","\\1",$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:
>
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 li
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 Orac
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.
>>>
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
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 Pe
www.chessish.com
>
>
>>-----Original 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
query string 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
>
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: htt
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 a
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
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 withi
Try something like:
$Entry = $openingEntry . $numberAtt . "\"" . $myNumber . "\"" . $nameAtt...
and so on.
travis wrote:
> just a quick syntax question: here is my php
>
> $openingItemTag = "\n";
> $openingEntry = " $numberAtt = "number=";
> $nameAtt = "name=";
> $dateAtt = "date=";
> $mes
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 subs
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 said.
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
On the new machine, does your code work in Netscape or Mozilla or Opera?
Does it work in IE on other machines?
If yes, then double-check the security settings in the new installation
of IE on the new computer.
Casey Allen Shobe wrote:
> I've set up a new machine in a production environment t
to be sure, but not impossible.
Dean 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
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 n
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. Yo
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
Assuming your page is called something like myPageWithScripts.php, do
something like this:
< html >
< head >
< script language="javascript" type="text/javascript" >
< !-- //Hide
function myFunction {
alert("My PHP variable value is ");
}
// -->
< /head >
...and so on.
Jordan wrote:
> Hey
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=
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
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:
\n\nTry This\n\n\n");
if(condition)
include("html_block_1.html");
else
hnson, Kirk" <[EMAIL PROTECTED]> wrote
regarding RE: [PHP] Single Quotes in Oracle Queries:
> Where are the strings coming from? If from a , then
> magic_quotes_sybase (in php.ini) is your friend. If from elsewhere, see
> magic_quotes_runtime for possible help (also in php.ini).
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 tra
37 matches
Mail list logo