close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

I can't get my checkFieldGroup_One Column Check box to show up in my email

Thread began 2/22/2010 12:26 pm by ciliberto378710 | Last modified 2/22/2010 3:08 pm by Ray Borduin | 856 views | 7 replies |

ciliberto378710

I can't get my checkFieldGroup_One Column Check box to show up in my email

I can't get my checkFieldGroup_One Column Check box to show up in my email. All I get is Registration group Areas of Interest: Array". I know I can use the implode directive, but I don't where or how to place it. Please help.

Sign in to reply to this post

Ray BorduinWebAssist

replace:

<?php echo(str_replace("\n","<BR />",$pval)); ?>

with:

<?php echo(str_replace("\n","<BR />",(is_array($pval)?implode(", ",$pval),$pval))); ?>

Sign in to reply to this post

ciliberto378710

Where to enter the code?

Thanks for the code, but where do I cut and paste that? Thanks.

Sign in to reply to this post

Ray BorduinWebAssist

In your email body... What do you have set as your email body?

Sign in to reply to this post

ciliberto378710

email body

I'm not sure what you mean by that. I have this setup to send me an email with all of the form data when someone completes it. For the email body I used:

<?php foreach( $_POST as $pkey => $pval ) { ?>
<?php echo(str_replace("_"," ",$pkey).": ".($pval)); ?>
<?php } ?>

I understand that you want me to replace with the new code you sent me. Can I replace this WAUE_contact_1.php style sheet or do I need to re-input the code via Insert>WebAssist>UniversalEmail and then run through the wizard again?

If I run through the wizard again, does that delete the input data I have already completed and start over? If I also want to send an email to someone who fills out my registration form, but I don't want to send them the collected data, then I assume I complete the wizard again using only their email address and email body that I want to use. Is that correct?

Thanks for your help.

Sign in to reply to this post

Ray BorduinWebAssist

So replace the second line of your email body...


<?php foreach( $_POST as $pkey => $pval ) { ?>
<?php echo(str_replace("_"," ",$pkey).": ".(str_replace("\n","<BR />",(is_array($pval)?implode(", ",$pval):$pval)))); ?>
<?php } ?>

Sign in to reply to this post

ciliberto378710

I am now getting a parse error

I have figured out where to place the code in the email body, but when I test the form online I get a parse error as follows:

Parse error: syntax error, unexpected ',' in /home8/globalnr/public_html/test/WA_Universal_Email/WAUE_contact_1.php on line 45

What I am doing wrong?

Sign in to reply to this post

Ray BorduinWebAssist

You didnt' do anything wrong (except listen to me ;) )... I gave you bad code.. the last comma should have been a colon like:

<?php foreach( $_POST as $pkey => $pval ) { ?>
<?php echo(str_replace("_"," ",$pkey).": ".(str_replace("\n","<BR />",(is_array($pval)?implode(", ",$pval):$pval)))); ?>
<?php } ?>

(I also updated the original post to be correct)

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