I have a form which contains a field for "height".
If someone places an entry such as: 5'6" the form seems like it completely
empties that value.
It does NOT do this on my machine, but does on the client's machine, which
leads me to believe it is something with their php configuration.
Any ideas on what this is (and how I can work around it?)
TIA
--
Karl Groves www.karlcore.com 6 2885
"Karl Groves" <ka**@NOSPAMkar lcore.comwrote in message
news:Xn******** *************** *****@216.196.9 7.136...
>I have a form which contains a field for "height".
If someone places an entry such as: 5'6" the form seems like it
completely
empties that value.
It does NOT do this on my machine, but does on the client's machine, which
leads me to believe it is something with their php configuration.
Any ideas on what this is (and how I can work around it?)
TIA
--
Karl Groves www.karlcore.com
Sounds like something to do with the 'magic quotes' setting in the php.ini
file.
Unfortunately I'm not sure what effect it will have on their other php
scripts if you change the setting on it.
Search for:
get_magic_quote s_gpc
get_magic_quote s_runtime
set_magic_quote s_runtime
on www.php.net.
Hope this helps.
Phil
Add addslashes() function.
e.g:
$var = addslashes ($_GET["var"])
-- http://www.groupvita.com http://www.immersivelounge.com
Karl Groves wrote:
I have a form which contains a field for "height".
If someone places an entry such as: 5'6" the form seems like it completely
empties that value.
It does NOT do this on my machine, but does on the client's machine, which
leads me to believe it is something with their php configuration.
Any ideas on what this is (and how I can work around it?)
TIA
--
Karl Groves www.karlcore.com
Karl Groves wrote:
I have a form which contains a field for "height".
If someone places an entry such as: 5'6" the form seems like it completely
empties that value.
It does NOT do this on my machine, but does on the client's machine, which
leads me to believe it is something with their php configuration.
Any ideas on what this is (and how I can work around it?)
TIA
Hi, Karl,
Do you mean the data doesn't get passed to the script, or when it's
redisplayed the value doesn't get displayed? Or it isn't stored in the
database correctly?
If the latter, check out htmlentities(). That's its main purpose. It
changes " to ", for example.
--
=============== ===
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp. js*******@attgl obal.net
=============== ===
Jerry Stuckle <js*******@attg lobal.netwrote in
news:B8******** *************** *******@comcast .com:
Karl Groves wrote:
>I have a form which contains a field for "height".
If someone places an entry such as: 5'6" the form seems like it completely empties that value.
It does NOT do this on my machine, but does on the client's machine, which leads me to believe it is something with their php configuratio n.
Any ideas on what this is (and how I can work around it?)
TIA
Hi, Karl,
Do you mean the data doesn't get passed to the script, or when it's
redisplayed the value doesn't get displayed? Or it isn't stored in
the database correctly?
If the latter, check out htmlentities(). That's its main purpose. It
changes " to ", for example.
I haven't done any debugging yet. I think it is a magic_quotes_gp c issue.
It *looks* like the entire entry is getting deleted if it contains a
quotation mark ("). If the entry in that field doesn't contain the
quotation mark, everything is fine.
--
Karl Groves www.karlcore.com
Karl Groves wrote:
Jerry Stuckle <js*******@attg lobal.netwrote in
news:B8******** *************** *******@comcast .com:
>>Karl Groves wrote:
>>>I have a form which contains a field for "height".
If someone places an entry such as: 5'6" the form seems like it completely empties that value.
It does NOT do this on my machine, but does on the client's machine, which leads me to believe it is something with their php configuratio n.
Any ideas on what this is (and how I can work around it?)
TIA Hi, Karl,
Do you mean the data doesn't get passed to the script, or when it's redisplayed the value doesn't get displayed? Or it isn't stored in the database correctly?
If the latter, check out htmlentities(). That's its main purpose. It changes " to ", for example.
I haven't done any debugging yet. I think it is a magic_quotes_gp c issue.
It *looks* like the entire entry is getting deleted if it contains a
quotation mark ("). If the entry in that field doesn't contain the
quotation mark, everything is fine.
Do you use the Live HTTP Headers extension to Firefox? I've found it to
be invaluable in figuring out post problems.
--
=============== ===
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp. js*******@attgl obal.net
=============== ===
Jerry Stuckle wrote:
Karl Groves wrote:
>Jerry Stuckle <js*******@attg lobal.netwrote in news:B8******* *************** ********@comcas t.com:
>>Karl Groves wrote:
I have a form which contains a field for "height".
If someone places an entry such as: 5'6" the form seems like it completely empties that value.
It does NOT do this on my machine, but does on the client's machine, which leads me to believe it is something with their php configuratio n.
Any ideas on what this is (and how I can work around it?)
TIA
Hi, Karl,
Do you mean the data doesn't get passed to the script, or when it's redisplayed the value doesn't get displayed? Or it isn't stored in the database correctly?
If the latter, check out htmlentities(). That's its main purpose. It changes " to ", for example.
I haven't done any debugging yet. I think it is a magic_quotes_gp c issue. It *looks* like the entire entry is getting deleted if it contains a quotation mark ("). If the entry in that field doesn't contain the quotation mark, everything is fine.
Do you use the Live HTTP Headers extension to Firefox? I've found it
to be invaluable in figuring out post problems.
Or just print_r($_REQUE ST) and check what's there. If that's OK (and it
usually is), check your code.
Posting quotation marks is (almost) never the problem, only the code that
deals with it. Without that specific code, we can guess all we want, posting
the specific piece of code that handles it can give you a much more usefull
answer.
Grtz,
--
Rik Wasmus This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: NikkoW |
last post by:
I need to assign a string to a variable but the text string includes quotation marks:
Example: MyString = "He turned and said "Hello" before leaving."
When the compiler hits the quotation marks in front of Hello, it assumes the string is over and generates and error on the remainder. I must use the double quotes " in my string and not the...
|
by: Stephen Poley |
last post by:
One disadvantage of using a simple text editor to produce HTML is that
it is relatively time-consuming to put in the proper typographical
quotation marks and dashes.
A round tuit having arrived on my desk, I've produced a couple of sed
scripts to automatically convert the 'typewriter' equivalents:
...
|
by: Tristan Miller |
last post by:
Greetings.
Do any popular browsers correctly support <q>, at least for Western
languages? I've noticed that Mozilla uses the standard English
double-quote character, ", regardless of the lang attribute of the HTML
document. Will any browsers render German-style quotes or French-style
guillemots for lang="de" and lang="fr", respectively?
...
|
by: Thomas Miskiewicz |
last post by:
Hi!
Is using of a double quotation mark with a URL a problem? For example:
http://myserver.com/query?field1=something&field2=test¶ms="field1=test1"+"field2=test2"
Regards
Thomas
|
by: Paradigm |
last post by:
I am trying to create a recordset where some text fields are matching. The
problem is that some of the text fields contain quotation marks. I have
tried to create the sql string using replace eg.
"SELECT * FROM MYTABLE WHERE REPLACE(MYFIELD,"""",".") = """ &
REPLACE(MYTEXT,"""",".") & """"
but this does not work. Trying to replace the...
| |
by: mplogue |
last post by:
I'm trying to build a function that reads each character in a string
and converts it to an ASCII numerical value. So far, so good.
However, I'm running into problems when dealing with quotation marks.
Using ASC(""") dosen't work, neither does ASC('"') or just ASC(").
Is there any other way to handle this? Is this the only character I'll...
|
by: Aaron Deskins |
last post by:
Hello all,
I'm trying to set up a database to track articles and documents. I've
created a Table to hold the information I need. I've set up one of the
fields to hold the actual text of the document/article. It's DataType is
Memo. I've also created a corresponding Form, mostly for aesthetics and
ease of entering data.
One problem I have...
|
by: Ufit |
last post by:
Simple,dumm question - how to include quotation marks in the string?
F.ex. "Data Source=.\SQLEXPRESS;AttachDbFilename="C:\client data.mdf";Integrated Security=True;User Instance=True"
I get syntax error.
Thanks for help
Ufi
|
by: The Bicycling Guitarist |
last post by:
Hi. For many years I have been using " for double quotation marks in
the HTML code, but the opening and closing quotation marks render the same
in my browser.
I'm considering going through and using “ and ” (in pairs as
needed) instead. Are there any *disadvantages* to doing so, besides the time
it will take to make the change?...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it. ...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...
| |