EasyEer wrote:
> What I was trying to do is have a administrative user
add a new user. The
> admin user will supply the email address of the new user
and a couple other
> fields into a form. A random temporary password is then
generated, this is the
> variable that I am referring to which I didn't want
placed in a hidden field.
> The data will then be added as a new record to the
database and the new user
> will be emailed the temporary password.
>
> Do you know of a quick and easy way to do this in DW
without the need to
> modify code?
What you are trying to do is very easy, but it goes without
saying that
you need to modify the code. Dreamweaver provides the basics
for you.
After that, you need to adapt the code to your own needs.
If you don't understand the code that Dreamweaver has
generated, the
easiest way to deal with this situation is to create a hidden
field for
the password, but give it no value. You can then use the
Insert Record
server behavior to assign the hidden field to the password
column. This
builds the SQL query, using $_POST['password'] as the value.
Then adapt the insert record script to assign a value to
$_POST['password'] *after* the form has been submitted.
--
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of
ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/