Merry Christmas. i'm trying to code up a dark figured page with input boxes
with values in them which will be displaced with user input. You guys have
been great helping with my pastime and I hope will now. I'm including my
feeble attempt below:
So many things wrong with your code - right from line 1. And you don't tell us AT ALL what you are having trouble accomplishing.
Line 1 -
<input type=text size=25 value="Invoice<? echo '$acctno'?></b><br />";
- No quotes on your type attribute
- A starting double quote on your value attribute and then some text and a variable value(needlessly in quotes!) then a bold end tag, a newline and no end of your input tag.
And to sum it all up - this line is NOT php so it needs to be echoed itself!
Perhaps if you have some code that actually does something then you can tell us what you want it to do differently/correctly and we can help you out.
Merry Xmas to you and yours and good luck in the new year with your attempts at programming. :)
12-23-2013, 05:53 AM
PHP and HTML interact a lot: PHP can generate HTML, and HTML can pass information to PHP.
12-31-2013, 06:18 AM
Not forgetting the variable $acctno hasn't even been assigned a value at that point.
This is awful code, if you can call it code??!!
Like ginerjm said, "good luck in the new year with your attempts at programming".
01-02-2014, 01:42 AM
...and please don't use background="...", bgcolor="..." or center tags. Such things should be placed in css.