HighDots Forums  

inserting own php code into DMX code

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss inserting own php code into DMX code in the Macromedia Dreamweaver forum.



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

Default inserting own php code into DMX code - 07-15-2003 , 11:05 AM






I am slotting a bit of php (its a mail() so that the form values are sent to
an email address as well as going in the db) into the $editFormAction which
includes an Insert Record Server Behaviour.
On "Save", it tells me that the Server behaviour has only been partly
deleted, so I went and recreated it.
Now I have TWO Insert Record Server Behaviours (in the code, its not visible
in the right hand panel) which of course adds two of everything to the db.
Ok, so next I delete the extra Insert... so that just the $editFormAction
with my bit of code is still there, save it and the Server Behaviour has
changed from a Insert Record to a Dynamic Attribute.
They both work (apart from the double save to db) but I was wondering if
there is a better way of doing this and how you change the Dynamic Attribute
when needed?
Andy



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.