Any php / html programmer? (in Off-topic)


Mythology December 9 2009 8:12 AM EST

Anyone know why this is like this?
http://thelastday.zxq.net/guessing.html

Mythology December 9 2009 8:12 AM EST

sry, please? :)

Tyriel [123456789] December 9 2009 8:16 AM EST

>

Tyriel [123456789] December 9 2009 8:18 AM EST

Apparently nospellcheck, HTML, and quoting don't like each other much.

Anyways:

Change the double quotes around PHP_SELF to single quotes, and that should fix it.

Mythology December 11 2009 9:04 AM EST

ty so much Tyriel very much appreciated :)
*bows*

Mythology December 11 2009 9:29 AM EST

Okay, next question :P

I've called the function isset at
http://thelastday.zxq.net/numguess.php

I've looked online etc at php tutorials and the like and they all say its a function to check if it has a value, yet when try to load it it doesnt seem to recognise it? :(

Salketer [big bucks] December 11 2009 10:22 AM EST

Right now, the codes Prints out <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="POST">

Should read http://thelastday.zxq.net/guessing.html instead... Are you sure your server parses HTML as PHP files? Change the extension to .php and all should work fine.

It is not normal to be able to see the PHP codes in the sources.
As for your second question, there is a line reading
of (lissest($_POST['guess'])) {

There is mucho typo there, we should be reading
if (isset($_POST['guess'])) {

There is no reason why it wouldn't work...

Spell check hates the programming language we are talking about.

Salketer [big bucks] December 11 2009 10:23 AM EST

Oh I didn't see the last post...

Forget my first one.

Read the error, the function does not exist because you made a typo in it.

AdminShade December 11 2009 2:24 PM EST

both pages have errors on them...

Lord Bob December 11 2009 2:37 PM EST

"Num Nuts" should be "Numb Nuts."

Salketer [big bucks] December 11 2009 2:55 PM EST

Seems like you got it working now!

Mythology December 11 2009 2:56 PM EST

Thank you so much, wouldve never noticed the typo, was on verge of tears earlier (okay not quite tears, perhaps a few hairs pulled out). Thank you again very much :)

AdminShade December 11 2009 4:09 PM EST

3? :p
This thread is closed to new posts. However, you are welcome to reference it from a new thread; link this with the html <a href="/bboard/q-and-a-fetch-msg.tcl?msg_id=002wnk">Any php / html programmer?</a>