close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Selective Email Reply Question

Thread began 9/13/2010 5:04 pm by dmtompki336862 | Last modified 9/15/2010 6:57 am by Jason Byrnes | 784 views | 3 replies |

dmtompki336862

Selective Email Reply Question

I'd like to send different forms based on what type of reservation is being made (using Ecart). For instance, if it's a birthday party, send the birthday reply email, if it's not birthday, send another email reply.

I create a session variable on the order forms that carries through to the confirm.php page. However, I'm unable to set a condition that sends the correct form.

I've tried "if ($_SESSION["partytpe"] == "birthday");(send birthday form).....else....(send other form)." but I always get both forms.

Any ideas how to make this work?
Thank you.

Sign in to reply to this post

Jason ByrnesWebAssist

If you are getting both emails, than you are not creating the if else statement correctly.


php:
<?php

if(isset($_SESSION["partytpe"]) && $_SESSION["partytpe"] == "birthday") { 
    <
send the birthday message>
} else {
    <
send the other message>
}
?>




If this is still not working, I would need to see your code.

Sign in to reply to this post

dmtompki336862

Thanks.

There was a error in the format of the session variable. I'm sure your change probably helped as well. Thank you for the help it's working...!

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