473,775 Members | 2,365 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

PHP generates tags automatically and does it incorrectly.

Hi,

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

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 1175
sh************@ gmail.com a écrit :
Hi,

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

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.c omwrote:
showandbesh...@ gmail.com a écrit :
Hi,
My php code generates the following line:
<input type="hidden" name="PHPSESSID "
value="36e197f9 2bsd34df4a6a20d kajkf10b4e4" />
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.c omwrote:
>showandbesh... @gmail.com a écrit :
>>Hi,
My php code generates the following line:
<input type="hidden" name="PHPSESSID "
value="36e197 f92bsd34df4a6a2 0dkajkf10b4e4" />
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******** *************** ***********@e25 g2000prg.google groups.com...
Hi,

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

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.p hp?id=1&cat=2" method="POST">

use this:
<form action="index.p hp?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="36e197f9 2bsd34df4a6a20d kajkf10b4e4" />

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('sessio n.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="36e197f 92bsd34df4a6a20 dkajkf10b4e4" />

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.comwro te:
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="36e197f9 2bsd34df4a6a20d kajkf10b4e4" />
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('sessio n.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.comwro te:
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="36e197f9 2bsd34df4a6a20d kajkf10b4e4" />
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('sessio n.use_trans_sid ',0);

--
Rik Wasmus
I put ini_set('sessio n.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_tra ns_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
5892
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; Changing the line-height does not improve anything. In FIREFOX 0.9.3, the text of the first input tag is fine. The asterisks of the input type password are too high in text field. And finally, the text of the third input tag is on the bottom...
10
3132
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 not provide me with the option to build a class library (dll)--instead I can use the command line (though I don't know how to replicate the "Register for COM Interop" option that is grayed-out in the IDE, which may be my problem).
8
2008
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>, <paramref>, and <exception>. <remarks> works; I have not tried <include>. Is this a bug in Studio or am I using those tags incorrectly? When the tag appears to have an attribute, I have tried <paramref="parameter">paramter name</paramref> and...
14
1264
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 cases this does not bother me, but for tags such as <br/that I usually do not use any attributes with I prefer not to have the extra space. I there a way to prevent Visual Studio .NET 2005 from inserting the extra space before the /> at the end of...
26
25618
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 idea? Thanks you very much
0
9622
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...
1
10051
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9916
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...
1
7464
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
6718
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
5360
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
5486
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3611
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2853
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.