close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

the letter a

Thread began 6/05/2012 2:45 pm by akstudio | Last modified 6/06/2012 2:13 pm by Jason Byrnes | 1005 views | 9 replies |

akstudio

the letter a

I've followed the information within this forum that will allow me to insert records into an email, and I am still having an issue.

In my "waue_users_Insert2_1.php file, I have:

//Start Mail Body
$MailBody = $MailBody . "$RecipArray[$RecipIndex][0]['password'];";
$MailBody = $MailBody . (GetFromPage("templates/Blank_3.php"));
$MailBody = $MailBody . "";
//End Mail Body

in my "blank_3.php" file, on line one, I have inserted the following:

<?php
global $RecipArray;
global $RecipIndex;
?>

within the body of this same file, I have:
<?php echo($RecipArray[$RecipIndex][0]["[password]"]); ?>

Upon receiving the email, I get the letter "a". Thats it, just that letter.

Any idea?

Sign in to reply to this post

Jason ByrnesWebAssist

all the recordset code should be in the template file..

this line:
$MailBody = $MailBody . "$RecipArray[$RecipIndex][0]['password'];";


should not be in the waue_users_Insert2_1.php file


in the template file, change:

php:
<?php echo($RecipArray[$RecipIndex][0]["[password]"]); ?>




to:

php:
<?php echo($RecipArray[$RecipIndex]["password"]); ?>
Sign in to reply to this post

akstudio

hmmm ok thanks,

I'm not getting anything back now. I'll do some more research and re-reading.

Sign in to reply to this post

Jason ByrnesWebAssist

sorry, it should be:

<?php echo($RecipArray[$RecipIndex][0]["password"]); ?>

Sign in to reply to this post

akstudio

that just returns the letter a

Sign in to reply to this post

Jason ByrnesWebAssist

I'll need to see the files then please

Sign in to reply to this post

akstudio

attached. thanks

Attached Files
files.zip
Sign in to reply to this post

Jason ByrnesWebAssist

i need the page that has the recordset and universal email code applied to it also.

Sign in to reply to this post

akstudio

sorry.. attached

Attached Files
user_Insert2.zip
Sign in to reply to this post

Jason ByrnesWebAssist

the code change you refer to is needed when the To address uses a redordset loop.


you are not looping through the recordset, instead you are using one address from the recordset.


On the template page, instead of using:

php:
<?php

global $RecipArray;
global 
$RecipIndex;
?>



at the top, use:

php:
<?php

global $rsUsers;
?>



then use:

php:
<?php echo $row_rsUsers['password']; ?>




to write the password from the recordset to the email.

Sign in to reply to this post
loading

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...