Originally Posted by sirantonycartwright Hmmm, im not sure if i was clear enough.
I know that to do this properly i need to have a scripting page, eg, ASP, but i dont want to use ASP or PHP or whatever because my webhost wont let me.
At the minute ive got a form powered by Java script but its not valid.
What i was asking was, was there some way i can put ASP code in an XHTML page?
But it doesnt matter now, because ive just been thinking; even if i could do that, the client would be doing the work because it wouldnt be a server page. so i might aswell go for the easy option and keep the java script even though its invalid!
- if that makes any sense!
Thanks, Ant... |
I'm quite sure that you have mixed you XHTML and server side scripting language ASP, PHP, JSP.
XHTML is a special kind of HTML, more grammer, more precise. There is no connection between running XHTML on webserver and putting some scripting in it. Because if you are looking for a static website, you don't need to put script in it, you can have just using XHTML. No one is going to stop you. When webserver find some file extension with asp or php, it compiles the script and convert it in HTML / XHTML. Again when it find the extension is on html, if just leave the file as it is and browser just render the file.
There are few tuitorial on XHTML on w3schools.com. Even if you know XHTML, you can validate your page on validator.w3.org/check?uri=referer. You can visit my pages, they are XHTML, CSS validated hasan-online.com
Best of luck.