 |
HTML Help Please Search for the answer to your question before asking it! Thanks.
|
| View previous topic :: View next topic |
| Author |
Message |
AlexNicol
Joined: 19 Sep 2008
Posts: 2
|
| Posted: Fri Sep 19, 2008 6:57 am Text Box Value as PHP Variable |
|
|
Hi there
I've got a couple of queries and I might not be using the correct languages here, but I wondered if you could help with the following.
I have a HTML form that users fill in, the values from these boxes then get sent to PHP variables, which are then stored in a mysql database.
Other users then log in, and they can view the database values pinned back into the html form for printing.
I am looking to add a page to allow the editing of these records, and want to know if it is possible to have something like
Code:
<input name="by" type="text" id="by" value='<? echo $by ?>' size="25">
so current values from the database appear in the text box which can be edited so when submit is pressed at the bottom of the page, I can again pass them to php variables and update the database.
Many thanks in advance for your help
Yrs
Alex |
|
|
AlexNicol
Joined: 19 Sep 2008
Posts: 2
|
| Posted: Fri Sep 19, 2008 7:07 am |
|
|
Sorted it
Code:
<input name="by" type="text" id="by" value="<? echo $by; ?>" size="25">
a) missed the ;
b) its " not '
Yrs
Alex |
|
|
| |
|
|
|
Powered by phpBB Search Engine Indexer
Powered by phpBB 2.0.19 © 2001, 2002 phpBB Group
|