Shinyshell Community Forums > Coding > Confused... |
||||||
Sign Up | Member List | New Posts | Help |
[1]
August 10 02009, 00:44 GMT | ||||
Pikachu Kelp is good! Location: California Post count: 50 |
1. Alright, so I've been chatting with Faltzer, a programmer known by most of the Pokémon community. We were talking about XHTML and he said that since I don't use all the features that XHTML offers, I should switch to HTML 4.1. I'm confused. Should I or not? And what are the tools he mentioned? He also said that XHTML is not supported by any browser.
2. Some Python. I was wondering if Python had something similar to this: <?php ______________________________ Linux | Chrome | Python | Chuck |
August 10 02009, 00:51 GMT | ||||
Peter* A Pythonic One Location: US Post count: 99 |
2 -- I'm pretty sure you have to use CGI to get variables from forms.
**variable lol |
August 10 02009, 00:53 GMT | ||||
Pikachu Kelp is good! Location: California Post count: 50 |
No, I know how to do that. I was wondering if you could check if the submitted form has any empty variables.
______________________________ Linux | Chrome | Python | Chuck |
August 10 02009, 01:09 GMT | ||||
lec** Supra stultitiam Location: Varaždin, Croatia Post count: 173 |
1. I don't use all the features C++ offers, so should I switch to BASIC? Nope.
Choosing a suitable document type is something usually up to the designer. As far as I can tell, XHTML is better accepted by web designers, and is currently more widely used. XHTML 1.0 Strict in particular gives off a very "this code is clean and simple" aura. Of course there are technical differences between HTML and XHTML, but honestly, which one you use really won't have such a substantial effect on your designs or the accessibility of your site. Using one or the other won't make your site either better or worse. XHTML is cleaner and makes the data in that document more easily accessible, which is why I prefer to use it. Faltzer may be fussing over something that's too trivial to have any significant influence, but I really can't guess why he'd suggest reverting to HTML 4.1 (unless your code is particularly broken and doesn't validate). 2. You can check them exactly like that if they're empty. if forms["id"].value == "": To check whether they were provided to the script, use the has_key method. if not forms.has_key("id"): |
August 11 02009, 22:30 GMT | ||||
Pikachu Kelp is good! Location: California Post count: 50 |
Okay, thank you very much, electron.
______________________________ Linux | Chrome | Python | Chuck |
[1]
Forum Information |
||||||||||
|