HighDots Forums  

Question about Insert data into database

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Question about Insert data into database in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
drolma
 
Posts: n/a

Default Question about Insert data into database - 08-02-2004 , 01:52 PM






I careated a Insert Record page, if I leave the form action as default, it
works. But if I set the action to my feedback page, it showed the page with
previouse data in the database but it does not insert the new record in the
database. I wonder why it heppens?
Thanks!
<form ACTION="<%=MM_editAction%>" METHOD="get" name="InputForm"
id="InputForm">Text


Reply With Quote
  #2  
Old   
Les Matthews
 
Posts: n/a

Default Re: Question about Insert data into database - 08-02-2004 , 01:54 PM






Does the code to insert the record exist in the feedback page?

"drolma" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
I careated a Insert Record page, if I leave the form action as default, it
works. But if I set the action to my feedback page, it showed the page
with
previouse data in the database but it does not insert the new record in
the
database. I wonder why it heppens?
Thanks!
form ACTION="<%=MM_editAction%>" METHOD="get" name="InputForm"
id="InputForm">Text




Reply With Quote
  #3  
Old   
drolma
 
Posts: n/a

Default Re: Question about Insert data into database - 08-02-2004 , 04:09 PM



Hi Les,

Thanks for the answer. Yes, I did bindings in the feedback page and on server
behavior as well. The code on feedback page is:

<form action="" method="post" name="Hometown" id="Hometown">
<p>&nbsp; </p>
<%
While ((Repeat1__numRows <> 0) AND (NOT hometown.EOF))
%>
<table width="96%" height="173" border="1" cellpadding="0" cellspacing="0">
<tr>
<td height="171"> <p
align="left"><%=(hometown.Fields.Item("Today").Val ue)%></p>
<p align="center"><font color="#FF0000" size="2"><strong><font
size="3" face="Comic Sans MS"><%=(hometown.Fields.Item("Name").Value)%>'s
Hometown</font></strong></font></p>
<p><font face="Comic Sans MS">Hi all,</font></p>
<p><font face="Comic Sans MS">My name is <font
color="#CC0033"><%=(hometown.Fields.Item("Name").V alue)%></font> . I am <font
color="#0000FF"><%=(hometown.Fields.Item("Age").Va lue)%></font> years old. I am
a <font color="#FF00FF"><%=(hometown.Fields.Item("Gendar") .Value)%></font>from
<font color="#33FF00"><%=(hometown.Fields.Item("City").V alue)%></font>, <font
color="#FF0033"><%=(hometown.Fields.Item("Country" ).Value)%></font> .
</font></p></td>
</tr>
</table>
<%
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
hometown.MoveNext()
Wend
%>
<p>&nbsp;</p>


<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
</form>
</body>
</html>
<%
hometown.Close()
Set hometown = Nothing
%>


Reply With Quote
Reply




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.