Jump to content

Update


SkyRanger

Recommended Posts

Yeah got sloppy putting the form demo in

 

<form method=post action=updatedata.php>
Choose Section :<select name="section">
<option></option>
<option>a</option>
<option>b</option>
</select></form>

Page Info:<textarea name="areadata" style="width: 234px; height: 121px"></textarea>
<nput type=button name=submit value=Enter Data>

on the updatedata page i would have 

if section==a
update table set a=areadata
else if section==b
update table set b=areadata
etc...

 

This will work or is there an easier way to do this?

Link to comment
https://forums.phpfreaks.com/topic/259450-update/#findComment-1329982
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.