simple code (look at it and tell me whats wrong)

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
grudz
Forum Commoner
Posts: 68
Joined: Thu Dec 04, 2003 12:52 pm

simple code (look at it and tell me whats wrong)

Post by grudz »

Code: Select all

<input name="question_title" type="text" class="txtbox" id="question_title" value="<?php echo $row_forum&#1111;'question_title']; ?>">
why isnt my "question_title" record showing in the text box ?

if i "echo" it higher up on the same .php page, it shows, but in that text box, it doesnt.
Linkjames
Forum Commoner
Posts: 90
Joined: Tue Sep 16, 2003 8:39 am

Post by Linkjames »

The only thing I could guess would be an array problem. Try setting the array to a new variable then putting that in your text box.

Code: Select all

<?php
$questiontitle = $row_forum['question_title'];
?>
<input name="question_title" type="text" class="txtbox" id="question_title" value="<?php echo $questiontitle; ?>">
grudz
Forum Commoner
Posts: 68
Joined: Thu Dec 04, 2003 12:52 pm

Post by grudz »

works.....thanx......
Post Reply