Re: Can someone explain this? include problem.....?

From: Date: Mon, 10 Mar 2003 03:54:06 +0000
Subject: Re: Can someone explain this? include problem.....?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-138907@lists.php.net to get a copy of this message
On March 9, 2003 04:30 pm, Beauford.2002 wrote: > Sorry, the line I was actually referring to is the one below. I > forgot the hidden one was even there and serves no purpose and does > not resolve the problem by removing it. > > This works: <input type=text name="player" SIZE="10" value="<? > echo $line['player']; ?>"> > It also works if I just hardcode a value (value="Bob") > > This doesn't: <input type=text name="goals" SIZE="5" > value"0"> > > They are both exactly the same other than the way they get their > values, so I don't see a reason why I'm losing part of the second > input line. Just to be clear, when I view the souce code I see > this: > > <input type=text name="goals" SIZE="5"> The value= has been > stripped from the code.... Look really hard at that second line.. Notice anything missing? I dont know why its stripped from your browser source but theres an obvious mistake. leo

« previous php.general (#138907) next »