From: Ashim Kapoor
From Ashley Sheridan
The quotes you mention are in the HTML, nothing to do with PHP. HTML
will
work without the quotes in most cases (unless there's a space in the
value
for the attribute) but the quotes are required in XHTML and will
cause
unexpected results.
Can you
At 8:23 AM -0500 2/28/11, Bob McConnell wrote:
From: Ashim Kapoor
From Ashley Sheridan
The quotes you mention are in the HTML, nothing to do with PHP. HTML
will
work without the quotes in most cases (unless there's a space in the
value
for the attribute) but the quotes are required in
Dear All,
I am learning PHP by reading a book. My query pertains to the following
lines : -
$form_str = EOFORMSTR
TABLE CELLPADDING=0 CELLSPACING=0 BORDER=0 ALIGN=CENTER
WIDTH=621
TR
TD ROWSPAN=2IMG WIDTH=15 HEIGHT=1
SRC=../images/spacer.gif/TD
.
My query is that is it true that we don't
On Sat, 2011-02-26 at 14:41 +0530, Ashim Kapoor wrote:
Dear All,
I am learning PHP by reading a book. My query pertains to the following
lines : -
$form_str = EOFORMSTR
TABLE CELLPADDING=0 CELLSPACING=0 BORDER=0 ALIGN=CENTER
WIDTH=621
TR
TD ROWSPAN=2IMG WIDTH=15 HEIGHT=1
The quotes you mention are in the HTML, nothing to do with PHP. HTML will
work without the quotes in most cases (unless there's a space in the value
for the attribute) but the quotes are required in XHTML and will cause
unexpected results.
Can you elaborate on the XHTML part? Do you mean they are
On Sat, 2011-02-26 at 16:27 +0530, Ashim Kapoor wrote:
The quotes you mention are in the HTML, nothing to do with PHP. HTML will
work without the quotes in most cases (unless there's a space in the value
for the attribute) but the quotes are required in XHTML and will cause
unexpected
Yes, in HTML the quotes are optional, but they are required in XHTML
documents:
http://www.w3.org/TR/xhtml1/diffs.html#h-4.4
Ok Thank you,
Ashim
On 6 August 2010 04:10, Rick Dwyer rpdw...@earthlink.net wrote:
Hi List.
I've mentioned before that I am both just beginning to learn PHP AND I have
inherited a number of pages that I'm trying to clean up the w3c validation on.
Something that confuses me is how the code on the page is
On 6 August 2010 07:34, Peter Lind peter.e.l...@gmail.com wrote:
On 6 August 2010 04:10, Rick Dwyer rpdw...@earthlink.net wrote:
Hi List.
I've mentioned before that I am both just beginning to learn PHP AND I have
inherited a number of pages that I'm trying to clean up the w3c validation
At 11:00 PM -0400 8/5/10, Paul M Foster wrote:
On Thu, Aug 05, 2010 at 10:10:26PM -0400, Rick Dwyer wrote:
echo table border='1'tr
And elsewhere on the page it follows:
echo 'table border=1tr
Not acceptable and sloppy. Be consistent in your coding style. In
general, HTML
On Aug 6, 2010, at 8:08 AM, tedd wrote:
At 10:10 PM -0400 8/5/10, Rick Dwyer wrote:
2nd question, in the 3 [2] lines below:
$checkstat = select field from table where fieldid = $field_id;
$result1 = @mysql_query($checkstat,$connection) or die(Couldn't execute
query);
If I were to
On 6 August 2010 13:31, tedd tedd.sperl...@gmail.com wrote:
I have a grammar question for the
group. I said above:
neither CSS, PHP, or any web language exist in a vacuum.
Is the word neither appropriate in this sentence?
Normally, two items can be compared by neither or nor, but what
On Fri, Aug 6, 2010 at 8:31 AM, tedd tedd.sperl...@gmail.com wrote:
While it may not be obvious, the statement:
table border=1
is flawed (IMO).
The best way to handle this is to define a class (or id) for the table in
a css file and then set the border (i.e., styling) to whatever you want.
At 9:09 AM -0400 8/6/10, Andrew Ballard wrote:
On Fri, Aug 6, 2010 at 8:31 AM, tedd tedd.sperl...@gmail.com wrote:
While it may not be obvious, the statement:
table border=1
is flawed (IMO).
The best way to handle this is to define a class (or id) for the table in
a css file and then
At 8:31 AM -0400 08/06/10, tedd wrote:
Cheers,
tedd
PS: Considering that this is Friday. I have a grammar question for
the group. I said above:
neither CSS, PHP, or any web language exist in a vacuum.
Is the word neither appropriate in this sentence?
Normally, two items can be compared
On 6 August 2010 16:18, Bill Guion bgu...@comcast.net wrote:
At 8:31 AM -0400 08/06/10, tedd wrote:
Cheers,
tedd
PS: Considering that this is Friday. I have a grammar question for the
group. I said above:
neither CSS, PHP, or any web language exist in a vacuum.
Is the word neither
On Aug 5, 2010, at 10:10 PM, Rick Dwyer wrote:
Hi List.
I've mentioned before that I am both just beginning to learn PHP AND I have
inherited a number of pages that I'm trying to clean up the w3c validation on.
Something that confuses me is how the code on the page is written where in
On Aug 5, 2010, at 10:43 PM, Michael Shadle wrote:
On Thu, Aug 5, 2010 at 7:10 PM, Rick Dwyer rpdw...@earthlink.net wrote:
Hi List.
I've mentioned before that I am both just beginning to learn PHP AND I have
inherited a number of pages that I'm trying to clean up the w3c validation
on.
On Thu, Aug 5, 2010 at 10:53 PM, Rick Dwyer rpdw...@earthlink.net wrote:
On Aug 5, 2010, at 10:43 PM, Michael Shadle wrote:
For HTML, -always- use double quotes.
tag attribute=bar / is the right way.
tag attribute='bar' / is the wrong way.
I'd go into more explanation but there
On Thu, Aug 5, 2010 at 8:51 PM, Adam Richardson simples...@gmail.com wrote:
I would suggest that saying tag attribute='bar' / is the wrong way is a
rather strong assessment. Whether you're talking about SGML (the
grandparent), XML (the parent), or XHTML, the use of a single quote is
On Thu, Aug 5, 2010 at 8:51 PM, Adam Richardson simples...@gmail.com wrote:
Tim Bray, who knows a little bit about XML dialects (tongue in cheek),
appears to default to the single quote as his delimiter of choice:
http://www.tbray.org/ongoing/
Side note, looks like his stuff is auto-generated
It is over head, but it caches the execution plan for multiple runs
of the
script. So different users with different data will use the same cached
query on the database. Saving processing time. It also prevents SQL
injection on the fly because you are indicating what data type each
place
Hello,
I am trying to get the following to work:
Select Netid from Users where Netid = '$_SESSION[phpCAS][user]'
Netid is a string type.
No matter where of if I put the quotes, I still get array[phpCAS] not the
value.
If there is anything I still have trouble with after all these years its
Try
session_start();
$sql = SELECT Netid FROM User WHERE
Netid='.$_SESSION['phpCAS']['user'].';
-Mensagem original-
De: MikeP [mailto:mpel...@princeton.edu]
Enviada em: quarta-feira, 14 de janeiro de 2009 14:17
Para: php-general@lists.php.net
Assunto: [PHP] Quotes in querys
Hello,
I
I am trying to get the following to work:
Select Netid from Users where Netid = '$_SESSION[phpCAS][user]'
Netid is a string type.
No matter where of if I put the quotes, I still get array[phpCAS] not the
value.
Maybe try this :
$q = 'Select Netid from Users where Netid = ' .
You can only interpolate ONE level of array or object indirection in a string.
WORKS:
... $foo[x] ...
... $foo-x ...
FAILS:
... $foo[x][y] ...
... $foo-x-y ... //almost for sure it fails, never tried...
You can use curly braces in side a string to evaluate something:
WORKS:
...
On Wed, Jan 14, 2009 at 11:17 AM, MikeP mpel...@princeton.edu wrote:
Hello,
I am trying to get the following to work:
Select Netid from Users where Netid = '$_SESSION[phpCAS][user]'
Netid is a string type.
No matter where of if I put the quotes, I still get array[phpCAS] not the
value.
If
Eric Butera eric.but...@gmail.com wrote in message
news:6a8639eb0901140825h1d603d01i3ffcce919dca6...@mail.gmail.com...
On Wed, Jan 14, 2009 at 11:17 AM, MikeP mpel...@princeton.edu wrote:
Hello,
I am trying to get the following to work:
Select Netid from Users where Netid =
On Wed, Jan 14, 2009 at 11:34 AM, MikeP mpel...@princeton.edu wrote:
Eric Butera eric.but...@gmail.com wrote in message
news:6a8639eb0901140825h1d603d01i3ffcce919dca6...@mail.gmail.com...
On Wed, Jan 14, 2009 at 11:17 AM, MikeP mpel...@princeton.edu wrote:
Hello,
I am trying to get the
Thanks, Thats the kind of help I was looking for.
Mike
c...@l-i-e.com wrote in message
news:20090114162142.65944.qm...@o2.hostbaby.com...
You can only interpolate ONE level of array or object indirection in a
string.
WORKS:
... $foo[x] ...
... $foo-x ...
FAILS:
... $foo[x][y] ...
...
Doesn't anybody use prepared statements these days? It even helps MySQL
AND Oracle cache an execution plan...
Forgive me if I'm wrong, but:
Caching an execution plan for a prepared statement that is run only once in the
script is just overhead, no?
Or can it actually re-use the same
On Wed, Jan 14, 2009 at 8:41 AM, MikeP mpel...@princeton.edu wrote:
Thanks, Thats the kind of help I was looking for.
Mike
c...@l-i-e.com wrote in message
news:20090114162142.65944.qm...@o2.hostbaby.com...
You can only interpolate ONE level of array or object indirection in a
string.
On Wed, Jan 14, 2009 at 9:11 AM, c...@l-i-e.com wrote:
Doesn't anybody use prepared statements these days? It even helps MySQL
AND Oracle cache an execution plan...
Forgive me if I'm wrong, but:
Caching an execution plan for a prepared statement that is run only once in
the script is
On Wed, Jan 14, 2009 at 10:07 AM, Kyle Terry k...@kyleterry.com wrote:
On Wed, Jan 14, 2009 at 9:11 AM, c...@l-i-e.com wrote:
Doesn't anybody use prepared statements these days? It even helps MySQL
AND Oracle cache an execution plan...
Forgive me if I'm wrong, but:
Caching an
On Wed, 2009-01-14 at 11:17 -0500, MikeP wrote:
Hello,
I am trying to get the following to work:
Select Netid from Users where Netid = '$_SESSION[phpCAS][user]'
Netid is a string type.
No matter where of if I put the quotes, I still get array[phpCAS] not the
value.
If there is anything I
On Wed, 2009-01-14 at 10:11 -0800, Kyle Terry wrote:
On Wed, Jan 14, 2009 at 10:07 AM, Kyle Terry k...@kyleterry.com wrote:
On Wed, Jan 14, 2009 at 9:11 AM, c...@l-i-e.com wrote:
Doesn't anybody use prepared statements these days? It even helps MySQL
AND Oracle cache an
Ashley Sheridan a...@ashleysheridan.co.uk wrote in message
news:1231962521.3613.13.ca...@localhost.localdomain...
On Wed, 2009-01-14 at 11:17 -0500, MikeP wrote:
Hello,
I am trying to get the following to work:
Select Netid from Users where Netid = '$_SESSION[phpCAS][user]'
Netid is a string
On Wed, 2009-01-14 at 15:24 -0500, Frank Stanovcak wrote:
Ashley Sheridan a...@ashleysheridan.co.uk wrote in message
news:1231962521.3613.13.ca...@localhost.localdomain...
On Wed, 2009-01-14 at 11:17 -0500, MikeP wrote:
Hello,
I am trying to get the following to work:
Select Netid from
It is over head, but it caches the execution plan for multiple runs of the
script. So different users with different data will use the same cached
query on the database. Saving processing time. It also prevents SQL
injection on the fly because you are indicating what data type each place
Am 2006-09-05 23:12:43, schrieb Gustav Wiberg:
I want to save this to a string...
script language=javascript
var uri = 'http://impse.tradedoubler.com/imp/img/16352388/1122503?' + new
^^
String (Math.random()).substring (2, 11);
document.write('a
I want to save this to a string...
script language=javascript
var uri = 'http://impse.tradedoubler.com/imp/img/16352388/1122503?' + new
String (Math.random()).substring (2, 11);
document.write('a
href=http://clk.tradedoubler.com/click?p=48859a=1122503g=16352388;
target=_blankimg src='+uri+'
On Tue, 5 Sep 2006, Gustav Wiberg wrote:
I want to save this to a string...
script language=javascript
var uri = 'http://impse.tradedoubler.com/imp/img/16352388/1122503?' + new
String (Math.random()).substring (2, 11);
document.write('a
Or use a heredoc?
--
http://www.web-buddha.co.uk
http://www.projectkarma.co.uk
On 9/6/06, Gustav Wiberg [EMAIL PROTECTED] wrote:
I want to save this to a string...
script language=javascript
var uri = 'http://impse.tradedoubler.com/imp/img/16352388/1122503?' + new
String (Math.random()).substring (2, 11);
document.write('a
I swear I googled for an hour first.
A user enters in a textarea field of FORM1.php:
Bob is high
Submitted to FROM2.php we get:
Bob is \high\
In a hidden field in FROM2.php we store the value: type=hidden, value=?
echo stripslashes($_POST['textarea']); ? Value now Bob is high
Then from
On Fri, 2004-10-08 at 06:22 -0700, Sam Smith wrote:
I swear I googled for an hour first.
A user enters in a textarea field of FORM1.php:
Bob is high
Submitted to FROM2.php we get:
Bob is \high\
In a hidden field in FROM2.php we store the value: type=hidden, value=?
echo
Sam Smith wrote:
I swear I googled for an hour first.
A user enters in a textarea field of FORM1.php:
Bob is high
Submitted to FROM2.php we get:
Bob is \high\
In a hidden field in FROM2.php we store the value: type=hidden, value=?
echo stripslashes($_POST['textarea']); ? Value now Bob is high
So
A user enters in a textarea field of FORM1.php:
Bob is high
Submitted to FROM2.php we get:
Bob is \high\
Tha't's normal beacuse you have magic_quotes_gpc_on
In a hidden field in FROM2.php we store the value: type=hidden, value=?
echo stripslashes($_POST['textarea']); ? Value now Bob
On Fri, 08 Oct 2004 06:22:22 -0700, Sam Smith [EMAIL PROTECTED] wrote:
Then from FROM2.php we Submit BACK to FROM1.php and enter it back into the
textarea field with:
type=textarea, value=? echo $_POST['hidden']); ?
I'd like to add that you can also use the following syntax for textarea
Andrew Kreps wrote:
I'd like to add that you can also use the following syntax for textarea fields:
input type=textarea?= $_POST['hidden'] ?/textarea
which may also get you past the quoting problem.
You mean you can use:
textarea name=hidden?=htmlentities($_POST['hidden'])?/textarea
unless you
I'm having some difficulty with quotation marks, both single and double,
input via a textarea in a form.
Here's and example of text.
Trying out the Special Character thing.
Page 1 is the form.
Page 2 is the data shown back to the user.
original POST data is not touched. NO stripslashes
Ed Curtis wrote:
I'm having some difficulty with quotation marks, both single and double,
input via a textarea in a form.
Here's and example of text.
Trying out the Special Character thing.
Page 1 is the form.
Page 2 is the data shown back to the user.
original POST data is not touched. NO
On Fri, 16 Jul 2004, John W. Holmes wrote:
Let's say you have $_POST['text'] from the user.
To display the value back to the user with magic_quotes_enabled, you'd
do this:
echo htmlentities(stripslashes($_POST['text']));
To put the value into a hidden form element, you'd do this:
On Fri, 16 Jul 2004 11:58:55 -0500 (EST), Ed Curtis [EMAIL PROTECTED] wrote:
On Fri, 16 Jul 2004, John W. Holmes wrote:
Let's say you have $_POST['text'] from the user.
To display the value back to the user with magic_quotes_enabled, you'd
do this:
echo
On Fri, 16 Jul 2004, Justin Patrin wrote:
This is why he said: Since you seem to have magic_quotes_gpc enabled,
you can put the value directly into your query.
You shouldn't use htmlentities when putting it into the DB. Use it
when displaying the text.
I tried it both ways and it only
Ed Curtis wrote:
On Fri, 16 Jul 2004, Justin Patrin wrote:
This is why he said: Since you seem to have magic_quotes_gpc enabled,
you can put the value directly into your query.
You shouldn't use htmlentities when putting it into the DB. Use it
when displaying the text.
I tried it both ways and it
On Fri, 16 Jul 2004, John W. Holmes wrote:
Ed Curtis wrote:
On Fri, 16 Jul 2004, Justin Patrin wrote:
This is why he said: Since you seem to have magic_quotes_gpc enabled,
you can put the value directly into your query.
You shouldn't use htmlentities when putting it into the DB. Use it
Ok then, I want to know how to do it the right way but just using
$_POST['text'], as stated before, in my query still cuts off the text at
the quote.
While passing this field between pages I don't do anything to it but when
I want to show it to the user I would use
* Thus wrote Evan Nemerson ([EMAIL PROTECTED]):
On Tuesday 28 October 2003 11:29 pm, Rolf Brusletto wrote:
Evan Nemerson wrote:
Is anyone aware of a way to get double quotes in the php.ini file? For
instance, I'd like to be able to set error_prepend_string to font
color=\#ff\ (which
Curt Zirzow wrote:
Try reversing the quotes:
error_prepend_string = font color='#ff';
Not valid XHTML (not sure if it's even valid HTML).
--
The above message is encrypted with double rot13 encoding. Any unauthorized attempt
to decrypt it will be prosecuted to the full extent of the
On Tuesday 28 October 2003 11:10 pm, Leif K-Brooks wrote:
Curt Zirzow wrote:
Try reversing the quotes:
error_prepend_string = font color='#ff';
Not valid XHTML (not sure if it's even valid HTML).
Yup. I've got the highlight_file thing from earlier working with ini entries,
and I'm
On Tuesday 28 October 2003 10:46 pm, [EMAIL PROTECTED] wrote:
Evan Nemerson wrote:
Is anyone aware of a way to get double quotes in the php.ini file? For
instance, I'd like to be able to set error_prepend_string to font
color=\#ff\ (which doesn't work).
The only work-around I can think
Hi,
On Wed, 29 Oct 2003 02:10:49 -0500
Leif K-Brooks [EMAIL PROTECTED] wrote:
Curt Zirzow wrote:
Try reversing the quotes:
error_prepend_string = font color='#ff';
Not valid XHTML (not sure if it's even valid HTML).
Why not?
- E -
On Tuesday 28 October 2003 11:59 pm, - Edwin - wrote:
Hi,
On Wed, 29 Oct 2003 02:10:49 -0500
Leif K-Brooks [EMAIL PROTECTED] wrote:
Curt Zirzow wrote:
Try reversing the quotes:
error_prepend_string = font color='#ff';
Not valid XHTML (not sure if it's even valid HTML).
Why
- Edwin - wrote:
Why not?
Because that's what the standard says.
--
The above message is encrypted with double rot13 encoding. Any unauthorized attempt
to decrypt it will be prosecuted to the full extent of the law.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
On Wed, 29 Oct 2003 03:22:54 -0500
Leif K-Brooks [EMAIL PROTECTED] wrote:
- Edwin - wrote:
Why not?
Because that's what the standard says.
Interesting. Where?
- E -
__
Do You Yahoo!?
Yahoo! BB is Broadband by Yahoo!
On Tue, 28 Oct 2003 22:05:56 -0800
Evan Nemerson [EMAIL PROTECTED] wrote:
On Tuesday 28 October 2003 11:59 pm, - Edwin - wrote:
Hi,
On Wed, 29 Oct 2003 02:10:49 -0500
Leif K-Brooks [EMAIL PROTECTED] wrote:
Curt Zirzow wrote:
Try reversing the quotes:
error_prepend_string =
- Edwin - wrote:
Interesting. Where?
www.w3.org
--
The above message is encrypted with double rot13 encoding. Any unauthorized attempt
to decrypt it will be prosecuted to the full extent of the law.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
On Wednesday 29 October 2003 12:30 am, - Edwin - wrote:
On Tue, 28 Oct 2003 22:05:56 -0800
Evan Nemerson [EMAIL PROTECTED] wrote:
On Tuesday 28 October 2003 11:59 pm, - Edwin - wrote:
Hi,
On Wed, 29 Oct 2003 02:10:49 -0500
Leif K-Brooks [EMAIL PROTECTED] wrote:
Curt Zirzow
* Thus wrote Leif K-Brooks ([EMAIL PROTECTED]):
Curt Zirzow wrote:
Try reversing the quotes:
error_prepend_string = font color='#ff';
Not valid XHTML (not sure if it's even valid HTML).
Sure it is, the quote character can be either ' or and will
validate perfectly fine at w3c. now
On Wed, 29 Oct 2003 03:29:13 -0500
Leif K-Brooks [EMAIL PROTECTED] wrote:
- Edwin - wrote:
Interesting. Where?
www.w3.org
? Sorry, *won't* find it there...
In fact, a quick Google search gives you this:
http://www.w3.org/TR/REC-html32
[quote]
Attribute values can be quoted using
On Tue, 28 Oct 2003 22:28:12 -0800
Evan Nemerson [EMAIL PROTECTED] wrote:
On Wednesday 29 October 2003 12:30 am, - Edwin - wrote:
On Tue, 28 Oct 2003 22:05:56 -0800
Evan Nemerson [EMAIL PROTECTED] wrote:
On Tuesday 28 October 2003 11:59 pm, - Edwin - wrote:
Hi,
On Wed, 29
Is anyone aware of a way to get double quotes in the php.ini file? For
instance, I'd like to be able to set error_prepend_string to font
color=\#ff\ (which doesn't work).
The only work-around I can think of is doing ini_set()'s in an
auto_prepend_file, and that's not acceptable for my
Evan Nemerson wrote:
Is anyone aware of a way to get double quotes in the php.ini file? For
instance, I'd like to be able to set error_prepend_string to font
color=\#ff\ (which doesn't work).
The only work-around I can think of is doing ini_set()'s in an
auto_prepend_file, and that's not
Evan Nemerson wrote:
Is anyone aware of a way to get double quotes in the php.ini file? For
instance, I'd like to be able to set error_prepend_string to font
color=\#ff\ (which doesn't work).
The only work-around I can think of is doing ini_set()'s in an
auto_prepend_file, and that's not
On Tuesday 28 October 2003 11:29 pm, Rolf Brusletto wrote:
Evan Nemerson wrote:
Is anyone aware of a way to get double quotes in the php.ini file? For
instance, I'd like to be able to set error_prepend_string to font
color=\#ff\ (which doesn't work).
The only work-around I can think of
Lets say I'm trying to extract some data from an HTML document. I want
to get the values of the 'src' attributes of various tags.
For example-
img src=http://www.yahoo.com;
here's the pattern I've been trying-
/\bsrc=(['|])[^\\1]*[\\1]/im
Basically, match the 'src=' followed by some type of
On 21 August 2003 17:03, Thaddeus J. Quintin wrote:
Lets say I'm trying to extract some data from an HTML
document. I want
to get the values of the 'src' attributes of various tags.
For example-
img src=http://www.yahoo.com;
here's the pattern I've been trying-
-- SNIP --
If single-quoting (better, if you don't variable interpolation) you
don't even need to escape the backslashes, so:
$pattern = '/\bsrc=([\'|])[^\1]*[\1]/im';
-- SNIP --
nope, not quite...
Here's what I've got-
$pattern='/\bsrc=([\'|])([^\1])*[\1]/im';
the string that's coming
Try parsing it as a string where the double quote would become a string.
See if that help. (Parse the whole characters into strings then find the
double quote.)
Thaddeus J. Quintin [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
-- SNIP --
If single-quoting (better, if you don't
The biggest part of my problem was that I had already called
htmlspecialchars on the string, so there was no quotes to match!
Duh.
Even after I fixed that it was still turning into a hassle, so I just
made two checks, one for single quotes, and, failing that, one for
double quotes.
not the
That may be why! It's the htmlspecialchars() that is the issue.. The
signle quote get convert into this, not sure if this apply to your situation
though.
--snip--
Reference : Special Characters in HTML
left single quote lsquo; '
right single quote rsquo; '
--snip--
Thaddeus
-Original Message-
From: Lso . [mailto:[EMAIL PROTECTED]
Sent: 25 June 2003 18:32
ok i see why i didnt work but i dont know why.
can anyone tell me why this works:
input name=testfield type=text value=? echo
htmlentities($company)
?
but this doesn't:
echo input
Ok I have been searching to no avail. I have a form that lets you add new
sets of information to a database. Once you add information i have a page
that displays this information in a series of text fields. I have done this
so you can alter the information in the fields hit edit and the
Try a textarea. Example:
textarea rows=5 cols=40
?php echo(stripslashes($whatever)); ?
/textarea
On Wed, 2003-06-25 at 10:20, Lso . wrote:
Ok I have been searching to no avail. I have a form that lets you add new
sets of information to a database. Once you add information i have a page
Yes!! You are the man! It works! Thank you all for the fast response.
Lucas Owens
www.lucasowens.com
www.technoiraudio.com
Try a textarea. Example:
_
The new MSN 8: advanced junk mail protection and 2 months FREE*
Does anyone know why this works this way? seems kinda odd that a textarea
will display it correctly but a normla field will not.
Try a textarea. Example:
Lucas
_
Tired of spam? Get advanced junk mail protection with MSN 8.
Cause of the quotes around the value, example:
input type=text value=my nickname is hank or bob
The HTML parser gets confused by the 's around hank,
so since the textarea doesn't use quote's to delimit the
value, it works fine.
On Wed, 2003-06-25 at 10:37, Lso . wrote:
Does anyone know why
understood. thanks for the help.
Lucas Owens
www.lucasowens.com
www.technoiraudio.com
From: Adam Voigt [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: Lso . [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
Subject: Re: [PHP] quotes
Date: 25 Jun 2003 10:47:56 -0400
Cause of the quotes around
Lso . wrote:
Ok I have been searching to no avail. I have a form that lets you
add new sets of information to a database. Once you add information i
have a page that displays this information in a series of text
fields. I have done this so you can alter the information in the
fields hit
)?/textarea
-Original Message-
From: Lso . [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 25, 2003 4:21 PM
To: [EMAIL PROTECTED]
Subject: [PHP] quotes
Ok I have been searching to no avail. I have a form that lets you add new
sets of information to a database. Once you add information i
: [PHP] quotes
Cause of the quotes around the value, example:
input type=text value=my nickname is hank or bob
The HTML parser gets confused by the 's around hank,
so since the textarea doesn't use quote's to delimit the
value, it works fine.
On Wed, 2003-06-25 at 10:37, Lso . wrote:
Does
=\text\
- Original Message -
From: Adam Voigt [EMAIL PROTECTED]
To: Lso . [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Wednesday, June 25, 2003 7:47 AM
Subject: Re: [PHP] quotes
Cause of the quotes around the value, example:
input type=text value=my nickname is hank or bob
9:04 AM
Subject: Re: [PHP] quotes
Umm, in his first email, he specifically said all the quotes
were already escaped with slashes and it didn't help.
On Wed, 2003-06-25 at 11:50, Chris Sherwood wrote:
or you would escape the quote by putting a \ in front of it that way the
engine knows
Thanks everyone. Honestly I tried so many things that Im not sure exactly
what combinations I tried. The textfield trick works, and I so sick of
looking at this script Im moving on. Ill try something else the next time
around. Thanks again for all of the excellent fast help!!
Lucas Owens
Lso . wrote:
Thanks everyone. Honestly I tried so many things that Im not sure
exactly what combinations I tried. The textfield trick works, and I
so sick of looking at this script Im moving on. Ill try something
else the next time around. Thanks again for all of the excellent fast
help!!
it doesnt work, i just tried it. the text is still cut off after the quote
Just try htmlentities()! A textarea is for multiple lines of text!
_
Tired of spam? Get advanced junk mail protection with MSN 8.
I had the same problem. I had my ISP turn magic quotes on in the php.ini
file on their server.
As soon as they did that, everything worked just fine.
-Steve Marquez
Marquez Design
[EMAIL PROTECTED]
www.marquez-design.com
it doesnt work, i just tried it. the text is still cut off after the
PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Wednesday, June 25, 2003 9:04 AM
Subject: Re: [PHP] quotes
Umm, in his first email, he specifically said all the quotes
were already escaped with slashes and it didn't help.
On Wed, 2003-06-25 at 11:50, Chris Sherwood wrote:
or you would escape
On Thursday 26 June 2003 00:52, Lso . wrote:
it doesnt work, i just tried it. the text is still cut off after the quote
Just try htmlentities()! A textarea is for multiple lines of text!
Show some code please.
--
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software
1 - 100 of 140 matches
Mail list logo