value not shown
Posted: Mon Jul 16, 2007 9:20 am
Hi
I query the database to retreive article title, text, order and section and display a form to edit it.
I'm trying to set the default value of the form fields as the current database records but they ( values) are not shown. here is the form code:
where I an wrong?
I query the database to retreive article title, text, order and section and display a form to edit it.
I'm trying to set the default value of the form fields as the current database records but they ( values) are not shown. here is the form code:
where I an wrong?
Code: Select all
<form method="POST" action="--WEBBOT-SELF--">
<p align="left"> title <input type="text" dir=rtl value="<? $title?>" name="title" size="20"> </p>
<p align="left">order<span lang="fa"> </span> <input type="text" value="<? $order?>" name="order" size="20"></p>
<p align="left">section<span lang="fa">
</span> <span lang="fa">
<input type="text" name="section" value="<? $section?>" size="20"></span></p>
<p align="left"><span lang="fa"> </span>article id <input type="text" name="id" value=<?php $_POST['id'] ?> size="20"></p>
<p align="left"><span lang="fa"> </span>article text</p>
<p align="left"><textarea dir=rtl rows="12" name="text" cols="60"></textarea></p>
<p align="center"><input type="submit" value="save" name="save"></p>
</form>