Re: Can someone explain this? include problem.....?
| From: | Beauford.2002 | Date: | Mon, 10 Mar 2003 00:30:44 +0000 |
| Subject: | Re: Can someone explain this? include problem.....? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-138894@lists.php.net to get a copy of this message | ||
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....
Thanks
----- Original Message -----
From: "Chris Hayes" <chayes@antenna.nl>
To: <php-general@lists.php.net>
Sent: Sunday, March 09, 2003 4:32 PM
Subject: Re: [PHP] Can someone explain this? include problem.....?
> At 22:15 9-3-2003, you wrote:
> >Hi,
> >
> >I have a php script which does some stuff and at the end of the file I
have
> >it include a file which has a form in it. The problem I am having is that
it
> >is missing code. If you go down to the second input - it has a value="0"
> >field - this does not show up when I view the source from my browser. The
> >first input value= works fine.
> have a closer look at it!!
>
> compare your first line:
> ><INPUT TYPE="hidden" name="FromPosted" value="TRUE">
> to the failing line:
> ><input type=text name="goals" SIZE="5" value"0">
>
> I'm sure you can see it :)
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>