473,623 Members | 2,693 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

4.3.10 inserting code invalid HTML


I am in the process of running my site through WC3 validation. I
assume the validator at www.w3c.org cant accept cookies and so PHP is
attaching &PHPSESSID=lask lijasj09jsad (or similar) to my URLS. The
problem is the leading character is a literal & rather than a & and
this is stopping the validator telling me my pages are valid.

What do I do here --

Jul 17 '05 #1
3 1531
*** James escribió/wrote (21 Mar 2005 11:07:38 -0800):
I am in the process of running my site through WC3 validation. I
assume the validator at www.w3c.org cant accept cookies and so PHP is
attaching &PHPSESSID=lask lijasj09jsad (or similar) to my URLS. The
problem is the leading character is a literal & rather than a & and
this is stopping the validator telling me my pages are valid.


You said it all: you cannot insert a literal &. It's the same as inserting
a literal \ in a PHP string: you must escape it. Use & instead.
BTW, W3c Validator won't use cookies. Why and how?
--
-+ Álvaro G. Vicario - Burgos, Spain
+- http://www.demogracia.com (la web de humor barnizada para la intemperie)
++ No envíes tu dudas a mi correo, publícalas en el grupo
-+ Do not send me your questions, post them to the group
--
Jul 17 '05 #2
>*** James escribió/wrote (21 Mar 2005 11:07:38 -0800):
I am in the process of running my site through WC3 validation. I
assume the validator at www.w3c.org cant accept cookies and so PHP is
attaching &PHPSESSID=lask lijasj09jsad (or similar) to my URLS. The
problem is the leading character is a literal & rather than a & and
this is stopping the validator telling me my pages are valid.
You said it all: you cannot insert a literal &.


PHP is inserting a literal &.
It's the same as inserting
a literal \ in a PHP string: you must escape it.
How? It appears that the & is being added through the action of trans_sid.
Use & instead.


How?

Gordon L. Burditt
Jul 17 '05 #3
*** Gordon Burditt escribió/wrote (21 Mar 2005 21:16:16 GMT):
Use & instead.


How?


Sorry, I misunderstood you. Check this:

http://es2.php.net/manual/en/ini.cor...parator.output

--
-+ Álvaro G. Vicario - Burgos, Spain
+- http://www.demogracia.com (la web de humor barnizada para la intemperie)
++ No envíes tu dudas a mi correo, publícalas en el grupo
-+ Do not send me your questions, post them to the group
--
Jul 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
4057
by: Miranda | last post by:
Hi, I have a ASP/vbscript program that generates random passwords. The problem is I need to insert those passwords into an Access database of 327 clients. I have the random password program generating the 327 passwords, but have had no luck inserting them. =============================================== Here is the code that generates the passwords: =============================================== <% Option Explicit %>
5
2620
by: David | last post by:
Hey, I'm looking for a code that can insert live audio, just like live video using Netmeeting as a host. The code I have for video is: <HTML><OBJECT ID="NetMeeting" CLASSID="CLSID:3E9BAF2D-7A79-11d2-9334-0000F875AE17"><PARAM NAME="MODE" VALUE="RemoteNoPause"></OBJECT><SCRIPT>NetMeeting.CallTo("callto:90.0.0.185+type=ip");</SCRIPT></HTML> If there is one that can apply the same type of function, but using a
3
3106
by: Mitch Abaza | last post by:
I've got a simple SQL Server 2000 table with an ntext field defined and I'm having a heck of a time inserting html into it. Everytime I try, I get an ADO.NET error complaining about invalid syntax because its trying to parse out the various HTML tags (>,<,+, =) and it's puking. Is there a way to disable this behavior? Thanks!
1
615
by: ajk | last post by:
. Hi, All: I know how to insert files into a Word doc using C#. However, the program I've written to do this runs much too slowly. The "myObj".Application.Selection.InsertFile method executes at a snails pace. Here are the detais: I wrote a C# program that creates a new Word doc and then loops through a
1
1861
by: Alan Silver | last post by:
Hello, I am just experimenting with master pages, and am trying to add a content placeholder in the <head> section, so that individual pages can set their own page title and meta tags. The master page looks like this... <%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %>
15
18877
by: Khurram | last post by:
I have a problem while inserting time value in the datetime Field. I want to Insert only time value in this format (08:15:39) into the SQL Date time Field. I tried to many ways, I can extract the value in timeonly format by using this command Format(now,"HH:mm:ss") But when I insert it into the Sql Server database, it embadded date value with it. the output looks like that "01/01/1900 08:59:00" in that case time is
1
10373
by: Smitty | last post by:
From the psql command line, I am having absolutely no problems inserting a NULL value into a date datatype field. When attempting to insert a NULL value via my Web app using SQL Relay, I am getting the following error: DBD::Pg::st execute failed: ERROR: invalid input syntax for type date: "null" I also get the exact same error if I attempt to insert an empty string
12
4907
by: desktop | last post by:
Why does insert only work when specifying an iterator plus the object to be inserted: std::vector<intt; std::vector<int>::iterator it; it = t.begin(); t.insert(it,33); If I use push_back instead I don't need to supply the iterator. But what
0
1488
by: kanishka1213 | last post by:
i get this kind of error while parsing html files and extracting their values and inserting those into database. The program runs very well for some files like first 80 files and then stops with below error. i tried googling this error but dint get any information . Does any one have idea about this..
0
8217
marktang
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8160
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8603
jinu1996
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8460
tracyyun
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7132
agi2029
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6104
isladogs
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5559
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4153
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1467
bsmnconsultancy
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.