B
Brian Henry
I have a page which reads an article from the database it has 1 text box, 2
dropdown lists, and a longreat HTML text box. I load the information from
the database when the page is set to edit mode from a query string
action=edit, now when i click on the update button it does the update event,
the problem is, it still has the old unedited data in memory... and places
the old stuff back into the database (saw this when debugging) the SQL is
right and everything, just its not getting the new information off the
page... now the thing thats confuseing me, when i do action=new as the query
string, which creates a new article, when i click on the add button which
does an intert sql command, the data that was taken from new fields goes
through correctly. why would this be happening? why is my update sub still
getting the old data, but the new sub is getting new data (the new data one
starts off with blank fields then the user enters data into them) thanks
dropdown lists, and a longreat HTML text box. I load the information from
the database when the page is set to edit mode from a query string
action=edit, now when i click on the update button it does the update event,
the problem is, it still has the old unedited data in memory... and places
the old stuff back into the database (saw this when debugging) the SQL is
right and everything, just its not getting the new information off the
page... now the thing thats confuseing me, when i do action=new as the query
string, which creates a new article, when i click on the add button which
does an intert sql command, the data that was taken from new fields goes
through correctly. why would this be happening? why is my update sub still
getting the old data, but the new sub is getting new data (the new data one
starts off with blank fields then the user enters data into them) thanks