Forums
This topic is locked
Insert Record Goto
Posted 20 Dec 2005 15:02:47
1
has voted
20 Dec 2005 15:02:47 Darren Lovelock posted:
<font face='Verdana'>I'm currently having problems with the insert record feature of Dreamweaver MX and its goto function. I have managed to make a form that submits to a mysql database but even though the form works, it refuses to follow the goto to the success.php page. Any ideas for why this would happen?Also the database table included some enum fields and untill I removed them, the recordset and insert record commands would not pick up the fields that linked to the ids of the form objects. I had to change these to dynamic lists in the form and give them their own table to get round this. I dont know if that's a seperate issue or if it relates to the goto problem.
Any help will be greatly appreciated!</font id='Verdana'> <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>
Replies
Replied 21 Dec 2005 11:33:07
21 Dec 2005 11:33:07 Roddy Dairion replied:
i usually use
if ($_POST['button_name']=="Button_Value"
{
(all ur insert to database should be included here.)
header ("location: success.php"
}
but it all depends on how u'r sending the data.
thx,
roddy
if ($_POST['button_name']=="Button_Value"
{
(all ur insert to database should be included here.)
header ("location: success.php"
}
but it all depends on how u'r sending the data.
thx,
roddy
Replied 28 Dec 2005 13:35:24
28 Dec 2005 13:35:24 Darren Lovelock replied:
I dont actually know PHP or SQL so I can't create custom scripts. I just wondered why the built in Dreamweaver command wouldnt work.