473,657 Members | 2,432 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

HTML Validation Errors - Sessions

I am trying to validate my website coding using the W3.ORG markup
validator.

Although there are some problems I am able to solve -I am getting lots
of these messages:

"Line 39, column 35: cannot generate system identifier for general
entity "PHPSESSID"

<a
href="printerfr iendly.php?pn=1 &PHPSESSID=1fa0 3d252f4998f205c 34b67f45873ee"> "

This is because PHP is inserting session variables using & rather than
&amp;. I have searched the net for a solution - and have identified one
or two that I can't seem to get to work.

Can someone suggest a definitive solution. I do not have full access to
the server (shared hosting).

Many thanks.

Jul 17 '05 #1
4 1778
*** St***********@g mail.com wrote/escribió (7 Jun 2005 02:30:01 -0700):
<a
href="printerfr iendly.php?pn=1 &PHPSESSID=1fa0 3d252f4998f205c 34b67f45873ee"> "

This is because PHP is inserting session variables using & rather than
&amp;. I have searched the net for a solution - and have identified one
or two that I can't seem to get to work.
Edit arg_separator.o utput in php.ini:

arg_separator.o utput = "&amp;"

BTW, and it's merely a matter of opinion, I don't think it's a good idea to
send session ids in URLs. That way they end up in bookmarks, forwarded
address, etc.

Can someone suggest a definitive solution. I do not have full access to
the server (shared hosting).


Oops... :)
Then try ini_set(), maybe you're allowed to change it per-script.
--
-- Álvaro G. Vicario - Burgos, Spain
-- http://bits.demogracia.com - Mi sitio sobre programación web
-- Don't e-mail me your questions, post them to the group
--
Jul 17 '05 #2
>>I am trying to validate my website coding using the W3.ORG markup
validator. I am getting lots of these messages:
"Line 39, column 35: cannot generate system identifier for general entity "PHPSESSID" Can someone suggest a definitive solution . I do not have full access to
the server (shared hosting).
Oops... :)
Then try ini_set(), maybe you're allowed to change it per-script.

I am using cookies for sessions. PHP is adding the PHPSESSID
automatically when it can't find a cookie. I would prefer it not to do
this.

I do not have access to the php.ini file. I have tried inserting:

ini_set('sessio n.use_trans_sid ', 0);

at the top of every page that using sessions before the
session_start() ; command.

Jul 17 '05 #3
>do not have access to the php.ini file. I have tried inserting:

ini_set('sessi on.use_trans_si d*', 0);
at the top of every page that using sessions before the
session_start( ); command.

I have added

"php_value arg_separator.o utput &amp;"

to my .htaccess file which hasn't stopped the session variables being
added by has ensured they are added with &amp; not just &.

Jul 17 '05 #4
St***********@g mail.com wrote:
<snip>
I am using cookies for sessions. PHP is adding the PHPSESSID
automatically when it can't find a cookie. I would prefer it not to do
this.

I do not have access to the php.ini file. I have tried inserting:

ini_set('sessio n.use_trans_sid ', 0);

<snip>

<news:11******* *************** @l41g2000cwc.go oglegroups.com> or
<http://groups-beta.google.com/group/comp.lang.php/browse_frm/thread/aca375b24bf4e50 c/ce24f27f2b7ac61 0#ce24f27f2b7ac 610>

--
<?php echo 'Just another PHP saint'; ?>
Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com

Jul 17 '05 #5

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

Similar topics

12
3291
by: StardogChampion | last post by:
I have wittled down my errors from 12 to 2, but the 2 it shows i can't really do anything about. 1. Line 126, column 48: there is no attribute "COLOR" <td height="1" colspan="5"><hr size="1" color="#CCCCCC"></td> 2. Line 286, column 27: there is no attribute "BACKGROUND"
12
2251
by: Nalaka | last post by:
Hi, I suddenly started getting a lot of errors from html validation (some CSS) so I followed the following instructions to disable it. If you'd rather not have these types of HTML validation errors show up in your error-list, you can disable this functionality by selecting the Tools->Options menu item in VS or Visual Web Developer. Select the TextEditor->Html->Validation tree option in the left-hand side of the
8
1778
by: goldtech | last post by:
Newbie esp about html validation - seems like something to strive for. Yet many pages even "enterprise" corporate type pages do not validate, yet seem to display well on most browsers. Two questions: 1. What is the reward, the reason to strive for a validating page? 2. Given the code snippet below which does not validate - how can accomplish the same "look" with code that does validate? Please without CSS, just html. Thanks ....
40
5584
by: VK | last post by:
Hi, After the response on my request from W3C I'm still unclear about Tidy vs. Validator discrepansies. That started with <IFRAME> issue, but there is more as I know. Anyway, this very basic HTML page: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Strict//EN" "http://www.w3.org/TR/html401/strict.dtd"> <html> <head>
7
6987
by: h7qvnk7q001 | last post by:
I'm trying to implement a simple server-side form validation (No Javascript). If the user submits a form with errors, I want to redisplay the same form with the errors highlighted. Once the form is correct I need to submit to another page that uses the form data. I first tried making the form submit action= field point to the same file. When the form was correct, I tried loading the next page by using <META http-equiv refresh>. But...
7
2389
by: jimrich | last post by:
Hi, using firefox browser and have a FrontPage built site: www.irenezart.com. used W3C markup validation service which came up with lots of errors in my index page. then I changed the doctype to strict and the validator came up with even more errors! I'm not very HTML literate so the errors are foreign to me and i do not know what to do about any of this. I am wondering if it even matters since the site is working as of now. I'd...
4
1058
by: GaryDean | last post by:
On one of our projects, using vs2005 professional, Visual Studio reformats the html in an aspx page so that it is virtually impossible to work with - although it still executes properly. For instance it takes well formed html that is indented for readability and converts everything to uppercase and removes all carriage returns. it converts this............... <table> <tr> <tdvAlign=top>
2
2100
by: Bruno Schneider | last post by:
I've seen this page, that seems invalid to me. Doctype is incomplete and it does not have a <bodytag. However, W3C validator validates it as HTML 4.01 strict, even when I force the DOCTYPE. I think it should be a bug in the validator, but perhaps, I missed something. What do you think? Page: http://www.bcc.ufla.br/~lpgomes/ Validator:
1
1068
by: =?Utf-8?B?ZGlzY2lwbGluZTRldmVyNjY2?= | last post by:
Hi, the CMS out company wrote a few years ago, uses certain attrbutes not included in any HTML validation known. Is there a way to add these custom attributes to HTML validation within VS2005? I ask this to reduce the number of errors I see without having to disable error trapping completely. I still want to see all error, without the ones from our own CMS. Ill give a little example. On a website we use the attribute pf_string="test" to...
0
8310
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
8732
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
8605
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
7330
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
6166
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
4155
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4306
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2726
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1615
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.