Forums

EmailVerification and if..else problem

jduntze 20 Oct, 2009
Hi folks,

again I have a problem with the email verification plug in.
I made a form with conditional buttons ( if button a is checked then show several more buttons). This works fine in the form. But now I want to show the values after the email verification. There I use the following code in the field "OnSubmit After Verification - Success: ":
You have submitted the following data:<br><br>

Name: {name} <br>
email: {email} <br>
Journal: {Journal} <br><br>

You want to <b>{action}</b> <br><br>

You want to receive
<?php
$b3cnews = "{AllNews}";
echo "<br>$b3cnews<br>";
if ($b3cnews == "1")
 {
 echo "all news from b3c newswire.";
 }
else
 {
 {
echo "the following channels: <br><br>";
 }
...


The echo %b3cnews command is just to verify my variable. Now the interesting and annoying part:

The variable reads 1 when the button is checked. But the code runs not the IF part but the ELSE part.

Do you have any idea what goes wrong?

Without the email verification the code runs pretty well (just another way to populate the variables). But unluckily I need the email verification. I have also tried the new beta version from this post http://www.chronoengine.com/forums.html?cont=posts&f=2&t=15304&p=40337&hilit=email+verification#p40337 but there I cannot get the variables working.

Any ideas what I can try next are welcome.


Greetings, Joerg
GreyHead 26 Oct, 2009
Hi Joerg,

I think that the problem here is that the PHP is evaluated before the {input_name} values are substituted. So you can't usefully use {input_name} inside the PHP.

Bob
jduntze 26 Oct, 2009
Hi Bob,

thanks for the answer. I think I will let drop the email verification. Too many problems with it.

Joerg
This topic is locked and no more replies can be posted.