Hi, please tell me why the following code. No error message, just doesn't work. <input type="text" STYLE="color: #000000; background-color: #AAFFAA;" size=25 name="acctno" value="<? echo $acctno;?>"></td> <input type=text size=25 STYLE="color: #000000; background-color: #AAFFAA;" name="bname" value="<? echo $bname;?>"><br> PHP:
No idea, but my first tip would be to clean up the code. That's some messy use of quote marks, and horrible use of table cells etc.
Change like that <input type="text" STYLE="color: #000000; background-color: #AAFFAA;" size=25 name="acctno" value="<?php echo $acctno;?>"></td> <input type=text size=25 STYLE="color: #000000; background-color: #AAFFAA;" name="bname" value="<?php echo $bname;?>"><br> PHP:
I'd say it probably has a lot to do with it, and even if it doesn't it's still likely something that should be fixed. That markup is BAD... Should probably be thrown out altogether since the TD is closed and no new one is opened... of course the inlined static style is some outright inept BS that has no place EVER being done either. The lack of ID's probably means no labels, which is why in general whatever that form is it's likely an inaccessible train wreck! When the OP has decade and a half out of date markup and broken/bloated methodologies, it's good SOMEBODY bothered to point it out! Though I think @ThePHPMaster hit it on the head, it's likely that shorttags aren't enabled. IF the OP is on PHP 5.4/newer (If you aren't your hosting is **** and it's time to either bitch them out or MOVE), you could use the <?= shorttag instead, which is basically a shorttag that ONLY echos. It's now enabled by default regardless of whether shorttags is enabled or not. <input type="text" size="25" name="acctno" value="<?= $acctno; ?>" /> <input type="text" size="25" name="bname" value="<?= $bname; ?>" /> Code (markup): Though really this is another reason I don't believe in using that ugly stupid "let's open and close PHP tags on every blasted line" crap... and would have it all inside an echo. echo ' <input type="text" size="25" name="acctno" value="', $acctno, '" /> <input type="text" size="25" name="bname" value="', $bname, '" />'; Code (markup): Though I do have a question for @ataloss -- DEFINE "doesn't work"? Does it not output the markup? Does it not submit it's values properly? You really didn't give much for people to try and even figure out.