This is a discussion on QUERY AND UPDATE PROBLEM within the PHP Language forums, part of the PHP Programming Forums category; Is there some reason you can't just do it like this? <form method="post" action="...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Is there some reason you can't just do it like this?
<form method="post" action="updated.php"> ID <input name="id" type="text" value="<?php echo $id; ?>" /><br /> Title <input name="title" type="text" value="<?php echo $title; ?>" /><br /> Date <input name="datetime" type="text" value="<?php echo $date; ?>" /><br /> Desc <textarea name="desc" cols="30" rows="5" wrap="VIRTUAL"><?php echo $desc; ?></textarea> <input name="update" type="submit" value="Update Event"> </form> $ud_id=$_POST['id']; $ud_title=$_POST['title']; $ud_date=$_POST['datetime']; $ud_desc=$_POST['desc']; |