Closed (fixed)
Project:
Webform
Version:
6.x-2.7
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
3 Aug 2009 at 20:12 UTC
Updated:
10 Feb 2010 at 02:22 UTC
I am trying to use the list function to call a calculation using $_SESSION[''] in a node
I have put in this code
<p>
miles: <?php print $_SESSION['a2']; ?>
</p>
<?php
If (print $_Session['a5'] = $_form_value['one'])
$b1 = "10";
if (print $_Session['a5'] = $_form_value['two'])
$b1 = "20";
?>
<p>
Total <?php print $_SESSION['a2']*$b1; ?> Lbs
I get the math correct for one of the values (in this case it's the $b1 = "20"; value
I want to be able to choose a value based on the drop down list selection.
any suggestions as to how I might accomplish this?
Comments
Comment #1
leavellwd commentedWell can anyone point me in the right direction?
Comment #2
leavellwd commentedplease
Comment #3
leavellwd commentedOk I figured it out. Thanks for your help everyone I appreciate it.
Seriously if anyone needs help with anything feel free to contact me, I'll do what I can to help and won't ignore your requests like most people do.
Comment #4
quicksketchSupport for writing custom code is not provided in the Webform queue.