hey guys, ima php newb here so be kind lol
any idea what went wrong here?
basically i just want it to display the different thing for whether the variable .php?type=wml or .php?type=xhtml (carried in the url from the previous page [sorted, no problems with that])
when i run the xhtml output throuhg the w3c validator, it's okay, but i then get this from the wml output
Result: Failed validation, 0 error
Unknown Parse Mode!
The MIME Media Type (text/html) for this document is used to serve both SGML and XML based documents, and it is not possible to disambiguate it based on the DOCTYPE Declaration in your document. Parsing will continue in SGML mode.
This page is not Valid -//WAPFORUM//DTD WML 1.1//EN!
-*-
i've tried a few things, including using this instead
thanks man .. and yeh, now i need help to 'sqeeze it down' that doesnt invlove having eveything on on line?
basically so i dont have to type (or copy,paste External image (may be gone) ) the echo command over and over and over again? it's gonna get kinda difficult later when i get onto the bigger pages if i carry on like i am
im experimenting with include() but havn't got very far with that yet .. and it doesn't seem to work if i use it to include a any file other than .php .. any tips?
hmm.. btw gurpreet .. i'm sure i've seen you around before .. ? or at least i recognise that name .. nvm lol
and the content of the pages in seperate files .. .. surely there's an easier way? and i don't want to get really into it until i got this bit right cos it would mean i'd hafta spend a LOT of time going through and fixing and debugging it all ..
you need to type echo if you want to send output.But you can use some php editor.They have option taht if you click on an option echo cames itself.And why do you cut and paste echo,instead just type echo "";
i want to display two different outputs dependant on what content type the browser accepts .. if i type directly into the php, it doesn't output valid wml/xhtml (W3C validator) ..
and yeh, i use a library computer so i can't download the opera browser
lol dnt worri bout it m8 .. still getting a few errors - the MIME type error that i mentioned in the first post (but i think that's to do with the server) and need to sort out my php cos it seems kinda inefficient and awkward to edit ..