473,405 Members | 2,300 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

PHP generates tags automatically and does it incorrectly.

Hi,

My php code generates the following line:
<input type="hidden" name="PHPSESSID"
value="36e197f92bsd34df4a6a20dkajkf10b4e4" />

Because of this line I cannot validate my page as HTML 4.01 strict
(since the input tag is ended with "/>").

I do not know how to force my code NOT to write the hidden-input-tag
in this way. It is important to mention that this line is generated
automatically. In other words, in my php code I do not have a line
which is intended to write the above shown problematic line (I think
that php writes this line because I use session).

Thank you!
Dec 12 '07 #1
8 1167
sh************@gmail.com a écrit :
Hi,

My php code generates the following line:
<input type="hidden" name="PHPSESSID"
value="36e197f92bsd34df4a6a20dkajkf10b4e4" />

Because of this line I cannot validate my page as HTML 4.01 strict
(since the input tag is ended with "/>").

I do not know how to force my code NOT to write the hidden-input-tag
in this way. It is important to mention that this line is generated
automatically. In other words, in my php code I do not have a line
which is intended to write the above shown problematic line (I think
that php writes this line because I use session).

Thank you!
why you do not use use $_SESSION['PHPSESSID'] ????
Dec 12 '07 #2
On Dec 11, 9:25 pm, Guillaume BASSINET <kan...@gmail.comwrote:
showandbesh...@gmail.com a écrit :
Hi,
My php code generates the following line:
<input type="hidden" name="PHPSESSID"
value="36e197f92bsd34df4a6a20dkajkf10b4e4" />
Because of this line I cannot validate my page as HTML 4.01 strict
(since the input tag is ended with "/>").
I do not know how to force my code NOT to write the hidden-input-tag
in this way. It is important to mention that this line is generated
automatically. In other words, in my php code I do not have a line
which is intended to write the above shown problematic line (I think
that php writes this line because I use session).
Thank you!

why you do not use use $_SESSION['PHPSESSID'] ????
Because I do not know what is it. But if you think it can help me I
will learn it.
Dec 12 '07 #3
sh************@gmail.com a écrit :
On Dec 11, 9:25 pm, Guillaume BASSINET <kan...@gmail.comwrote:
>showandbesh...@gmail.com a écrit :
>>Hi,
My php code generates the following line:
<input type="hidden" name="PHPSESSID"
value="36e197f92bsd34df4a6a20dkajkf10b4e4" />
Because of this line I cannot validate my page as HTML 4.01 strict
(since the input tag is ended with "/>").
I do not know how to force my code NOT to write the hidden-input-tag
in this way. It is important to mention that this line is generated
automatically. In other words, in my php code I do not have a line
which is intended to write the above shown problematic line (I think
that php writes this line because I use session).
Thank you!
why you do not use use $_SESSION['PHPSESSID'] ????

Because I do not know what is it. But if you think it can help me I
will learn it.
can you send me your doctype?
and if you use /it's xhtml, not html strict
Dec 12 '07 #4

<sh************@gmail.comwrote in message
news:cd**********************************@e25g2000 prg.googlegroups.com...
Hi,

My php code generates the following line:
<input type="hidden" name="PHPSESSID"
value="36e197f92bsd34df4a6a20dkajkf10b4e4" />

Because of this line I cannot validate my page as HTML 4.01 strict
(since the input tag is ended with "/>").
Is it possible that you are using ampersand in your form.
Example:
if you are using this:
<form action="index.php?id=1&cat=2" method="POST">

use this:
<form action="index.php?id=1&amp;cat=2" method="POST">

If this doesn't help here is some other stuff to read:

http://www.w3.org/QA/2005/04/php-session

Best of luck,
Zvonko
Dec 12 '07 #5
On Wed, 12 Dec 2007 03:15:19 +0100, <sh************@gmail.comwrote:
Hi,

My php code generates the following line:
<input type="hidden" name="PHPSESSID"
value="36e197f92bsd34df4a6a20dkajkf10b4e4" />

Because of this line I cannot validate my page as HTML 4.01 strict
(since the input tag is ended with "/>").

I do not know how to force my code NOT to write the hidden-input-tag
in this way. It is important to mention that this line is generated
automatically. In other words, in my php code I do not have a line
which is intended to write the above shown problematic line (I think
that php writes this line because I use session).
ini_set('session.use_trans_sid',0);

--
Rik Wasmus
Dec 12 '07 #6
..oO(sh************@gmail.com)
>My php code generates the following line:
<input type="hidden" name="PHPSESSID"
value="36e197f92bsd34df4a6a20dkajkf10b4e4" />

Because of this line I cannot validate my page as HTML 4.01 strict
(since the input tag is ended with "/>").

I do not know how to force my code NOT to write the hidden-input-tag
in this way.
http://www.php.net/manual/en/ref.ses...-rewriter.tags

Micha
Dec 12 '07 #7
On Dec 12, 6:39 am, "Rik Wasmus" <luiheidsgoe...@hotmail.comwrote:
On Wed, 12 Dec 2007 03:15:19 +0100, <showandbesh...@gmail.comwrote:
Hi,
My php code generates the following line:
<input type="hidden" name="PHPSESSID"
value="36e197f92bsd34df4a6a20dkajkf10b4e4" />
Because of this line I cannot validate my page as HTML 4.01 strict
(since the input tag is ended with "/>").
I do not know how to force my code NOT to write the hidden-input-tag
in this way. It is important to mention that this line is generated
automatically. In other words, in my php code I do not have a line
which is intended to write the above shown problematic line (I think
that php writes this line because I use session).

ini_set('session.use_trans_sid',0);

--
Rik Wasmus
It means that my pages will not work if user's browser does not
support cookies?
Dec 13 '07 #8
On Dec 12, 6:39 am, "Rik Wasmus" <luiheidsgoe...@hotmail.comwrote:
On Wed, 12 Dec 2007 03:15:19 +0100, <showandbesh...@gmail.comwrote:
Hi,
My php code generates the following line:
<input type="hidden" name="PHPSESSID"
value="36e197f92bsd34df4a6a20dkajkf10b4e4" />
Because of this line I cannot validate my page as HTML 4.01 strict
(since the input tag is ended with "/>").
I do not know how to force my code NOT to write the hidden-input-tag
in this way. It is important to mention that this line is generated
automatically. In other words, in my php code I do not have a line
which is intended to write the above shown problematic line (I think
that php writes this line because I use session).

ini_set('session.use_trans_sid',0);

--
Rik Wasmus
I put ini_set('session.use_trans_sid',false); in the first line of my
php source. But it does not prevent php from the writing the SID in
the hidden variables. Why? From the other hand, the usage of
the .htaccess with the included "php_flag session.use_trans_sid off"
helps.
Dec 13 '07 #9

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

Similar topics

0
by: Lea | last post by:
Hi, I 've got a problem concerning the text alignment of my three input tags. In IE6, the "login" and "ok" words are completely aligned on the bottom border. Yet my padding is : 0px 0px 0px 1px;...
10
by: C Williams | last post by:
Hi, In a nutshell, my question is: how do i make a dll that I compile from vb.net code register and work like one compiled as an ActiveX dll in VB6? The IDE of my copy of visual basic.net does...
8
by: Will Pittenger | last post by:
I have a Windows program C# .NET solution where when I update its XML documentation, some tags are not recognized and turned into the corresponding HTML. Those tags include <c>, <code>, <para>,...
14
by: Nathan Sokalski | last post by:
I often use self-closing tags (such as <br/>) when creating an ASP.NET application. However, when I enter them in Visual Studio .NET 2005, it automatically inserts a space before the />. In most...
26
by: webrod | last post by:
Hi, I have some php pages with a lot of HTML code. I am looking for a HTML validator tool (like TIDY). TIDY is not good enough with PHP tags (it removes a lot of php code). Do you have any...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...
0
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,...
0
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...

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.