QUERY AND UPDATE PROBLEM

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="...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #31 (permalink)  
Old 02-27-2006
samudasu
 
Posts: n/a
Default Re: QUERY AND UPDATE PROBLEM

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'];

Reply With Quote
  #32 (permalink)  
Old 02-27-2006
Lag
 
Posts: n/a
Default Re: QUERY AND UPDATE PROBLEM

No........that's the way I was doing it.........

with
$ud_id=$_POST['id'];
$ud_title=$_POST['title'];
$ud_date=$_POST['datetime'];
$ud_desc=$_POST['desc'];
on updated.php

it still doesn't update though...............any suggestions?

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 12:47 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0