close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Universal Email 4

Thread began 10/18/2010 3:23 pm by gary917 | Last modified 10/19/2010 8:07 am by Jason Byrnes | 940 views | 4 replies |

gary917

Universal Email 4

Could one provide me with way to display individual form values in specific places in an html email?

When get the template information form a file and edit the form in Dreaweaver the form value are display 3 times in generated email.

Is there an example of a customized form that shows form values you use in the email form that displays the values in an email?

I have tried <?php echo $row_LostPW['first_name']?> without success.

I have also attached an example of my template.

Attached Files
password_recovery.txt
Sign in to reply to this post

Ray BorduinWebAssist

I think you would just have to declare that row as a global variable on top of your email template:

<?php
global $row_LostPW;
?>

Sign in to reply to this post
Did this help? Tips are appreciated...

Jason ByrnesWebAssist

The template uses a loop to go through each form element and print it's value in the emails:

php:
<?php

foreach( $_POST as $pkey => $pval ){
  if (!
RemoveValue($pkey,$remove,$removeBegins,$removeEnds,$removeIncludes))  {
?>
                    <tr valign="top">
                        <th style="font-family: 'Trebuchet MS', Arial, Helvetica, sans-serif; font-size: 11px; width: 134px; text-align: right; padding: 3px 10px 3px 3px; color: #000; font-weight: bold;">User Name:</th>
                        <td style="font-family: 'Trebuchet MS', Arial, Helvetica, sans-serif; font-size: 11px; padding: 3px; border-left: 1px solid #DDD; color: #000;"><?php echo $row_LostPW['username']?></td>
                  </tr>
                    <tr valign="top">
                      <th style="font-family: 'Trebuchet MS', Arial, Helvetica, sans-serif; font-size: 11px; width: 134px; text-align: right; padding: 3px 10px 3px 3px; color: #000; font-weight: bold;">Password:</th>
                      <td style="font-family: 'Trebuchet MS', Arial, Helvetica, sans-serif; font-size: 11px; padding: 3px; border-left: 1px solid #DDD; color: #000;"><?php echo $row_LostPW['pwd']?></td>
                  </tr>
<?php
  
}
}
?>




if you want to show a specific form element, you would use code like:

php:
<?php echo(isset($_POST['elementName'])?$_POST['elementName']:""); ?>




where elementName is the name of the form element you wish to print.

Sign in to reply to this post

gary917

Thanks

Adding the following code block worked.

<?php
global $row_LostPW;
?>

When used with <?php echo $row_LostPW['elementName']?>

When I used this code block only the form value displayed in the email was with value username

<?php echo(isset($_POST['elementName'])?$_POST['elementName']:""); ?>


<?php echo(isset($_POST['username'])?$_POST['username']:""); ?>

Thanks
Gary

Sign in to reply to this post

Jason ByrnesWebAssist

Ok, glad to hear it is working.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...