W3C Validator and Session

General discussions related to php

Moderators: egami, macek, gesf

Post Reply
Oleg Butuzov
Last Samuray
Last Samuray
Posts: 824
Joined: Sun Jun 02, 2002 3:09 am

Mon Sep 08, 2003 12:13 pm

you shoud use class for input teg

pootergeist
New php-forum User
New php-forum User
Posts: 191
Joined: Wed Jan 29, 2003 7:11 am
Location: UK
Contact:

Mon Sep 08, 2003 1:51 pm

If your error_reporting doesn't complain about trying to set session variables without instantiating the session, you could use

Code: Select all

if(strpos($_SERVER['USER_AGENT'],'W3C_Validator') < 0)
   {
   session_start();
   }


so the validator doesn't get a session start and thus the sid isn't appended to form actions.

<fieldset>
<legend>my form</legend>
<form .........>
<input type="..." name="..." />
</form>
</fieldset>

you might also want to start using <label> tags for the elements.
avatar image based upon nasas apod (only updates if I post though)

pootergeist
New php-forum User
New php-forum User
Posts: 191
Joined: Wed Jan 29, 2003 7:11 am
Location: UK
Contact:

Tue Sep 09, 2003 2:54 am

apparently

Code: Select all

ini_set('arg_separator.output', '&amp;');


will also work
avatar image based upon nasas apod (only updates if I post though)

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 2 guests