Green

Thursday, July 4, 2013

php in html forms problem

Not only does your opening and closing of PHP make no sense, you're code makes little to no sense... why (as daniel_r said) are you wasting a form and submit to do an anchor's job? Why are you using HTML 3.2 in writing the page? The mere presence of inlined CSS and a CENTER tag means whatever page this is going into needs to be thrown out and started over.

Of course, your REAL problem is that you didn't close php before you started your markup after setting $play. Do you see a ?> in there? Again though, why if I had my way would be removed from PHP entirely as pointless, redundant, and possibly a security risk.

That's one hell of a mess of nonsense for what should probably be a LIST (since it's related choices) containing ANCHORS... preferably not constantly opening and closing PHP for no good reason.

            Next »            « Random »            « PreviousAssumes you are already inside

You want to make them look like form inputs, that's what CSS is for -- usually you can even style them more attractive than form inputs and more reliably thanks to CSS3. I suspect you were chosing tags either based on their appearance, or from not understanding that if all you are sending is getdata, you don't need a form.

.. and to be frank, if you are using STYLE as a tag, STYLE as an attribute, or tags like CENTER, you're doing it ALL WRONG in all but the rarest of circumstances. CENTER in particular says "look at me, I can haz intarnets style 1997?"

Again, the wrong markup doing the wrong job!


View the original article here

0 comments:

Post a Comment