473,408 Members | 2,442 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,408 software developers and data experts.

problems getting valid HTML out of PHP

not sure if this is a PHP or HTML question. PHP sessions usually put a
"?" after the url and then the session number. Most validators choke
on the "?". What should I use instead? And where is the damn line? All
I can find is this:
; The separator used in PHP generated URLs to separate arguments.
; Default is "&".
;arg_separator.output = "&"

; List of separator(s) used by PHP to parse input URLs into variables.
; Default is "&".
; NOTE: Every character in this directive is considered as separator!
;arg_separator.input = ";&"

This is, I think, where I set it to use "&" instead of "&". But
how do I get rid of the question mark? How do people, in general, get
valid HTML when using PHP?
Jul 17 '05 #1
5 1599
On 17 Sep 2004 17:26:41 -0700, lk******@geocities.com (lawrence)
wrote:
not sure if this is a PHP or HTML question. PHP sessions usually put a
"?" after the url and then the session number. Most validators choke
on the "?". What should I use instead?


A ? in a url in html doesn't normally prevent it being valid. Do you
have an actual page that fails to validate because of this? Are you
sure that you're reading the error message correctly?

Steve

Jul 17 '05 #2
this is often because of a wrong <!doctype ...> at the beginning of the html

thats all i know, i never got into it, although its bothering me, as well
Jul 17 '05 #3
lk******@geocities.com (lawrence) wrote in
news:da**************************@posting.google.c om:
not sure if this is a PHP or HTML question.
It's a PHP question, most likely.
PHP sessions usually put a "?" after the url
and then the session number.
No, that is one of the possible behaviours, but
it "doesn't just happen".
Most validators choke on the "?".
Which validators?
Provide a URL of an example page.
What should I use instead? And where is the damn line? All
I can find is this:

; The separator used in PHP generated URLs to separate arguments.
The question mark is the standard delimiter that marks the
start of query string arguments in a URI. Nothing to do with
argument separators.
But how do I get rid of the question mark?


You don't, if you want to use query string arguments.

--
Dave Patton
Canadian Coordinator, Degree Confluence Project
http://www.confluence.org/
My website: http://members.shaw.ca/davepatton/
Jul 17 '05 #4
On 17 Sep 2004 17:26:41 -0700, lk******@geocities.com (lawrence)
wrote:
not sure if this is a PHP or HTML question. PHP sessions usually put a
"?" after the url and then the session number. Most validators choke
on the "?". What should I use instead? And where is the damn line? All
I can find is this:
I think you'll find it's choking on the "&" and not the "?".

[snip]This is, I think, where I set it to use "&amp;" instead of "&".


So do I.
Edit your php.ini accordingly or add line:
php_value arg_separator.output "&amp;"
to .htaccess
--
FREE phonecalls with other TalkTalk customers: <http://www.bizorg.co.uk/shopping/talktalk/>
Locate your Mobile phone: <http://www.bizorg.co.uk/news.html>
Jul 17 '05 #5
lawrence wrote:
not sure if this is a PHP or HTML question. PHP sessions usually put a
"?" after the url and then the session number. Most validators choke
on the "?".

If you are uploading a php file, yes, you get errors. If by URL, there
should be no such problem.
So: what validator are you using and how are you sending the markup?
And do you have a sample URL?

--
jmm dash list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Jul 17 '05 #6

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

Similar topics

9
by: leke | last post by:
Hi, I am trying to learn PHP but am having some problems getting my code running in Explorer 6. <html> <head> <title>PHP Test</title> </head> <body> <?php echo '<p>Hello World</p>'; ?>...
3
by: John Draper | last post by:
I am having a lot of problems trying to get a Python CGI to run. I have included 3 parts... 1) A simple stripped down python module. 2) An output of what I get when I do: python index.py...
5
by: lawrence | last post by:
not sure if this is a PHP or HTML question. PHP sessions usually put a "?" after the url and then the session number. Most validators choke on the "?". What should I use instead? And where is the...
6
by: Mike | last post by:
http://www.calgarymike.com/content/fsbo.html After having validated a couple of pages I'm completely stumped as to why I get this message. I don't have a line counter in my program (Arachnophia)...
32
by: jp29 | last post by:
My take on problems composing, serving and rendering XHTML documents/web pages: 1. Typical conscientious web authors are producing XHTML documents (Web pages) that feature valid Markup and with...
4
by: Lee Chapman | last post by:
Hi, I am having difficulty getting the ASP.NET framework to generate valid XHTML. My immediate problem surrounds user input in, for example, textbox controls. I consider characters such as...
20
by: Alan Silver | last post by:
Hello, I have read about the problems that IE has when using a doctype of HTML 4.01 Transitional. I was advised to use Strict wherever possible. My question is, does the same apply to XHTML...
4
by: tshad | last post by:
I am trying to hide and show certain parts of my code (which I have no problem doing with DW). In VS 2003, it won't let you use <div runat="server"to section of parts of my code in a table. This...
2
by: Cerebral Believer | last post by:
Hi folks, Can anyone help me with this form: http://futurebydesign-music.com/_member/club_fbd_reg.php I have followed to coding instructions aas closely as I can, but I am getting errors...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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,...
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
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
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.