For Programmers: Free Programming Magazines  


Home > Archive > PHP Language > March 2004 > php variable problem....









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author php variable problem....
news.coam.net

2004-03-26, 11:13 pm

i'm using phorm (www.phorm.com) to process an order form...send ack emails
and write logs....i am having trouble getting the variables to work as
below...... any thoughts or ideas greatly appreciated!
thanks, jim@jimwarren.us

i am trying to created new variables based on the value of a form

field....but i cant get the new values to pass to the log....

(the only ones i'm having trouble with are UNIT, SHIP, GROSS and TOTAL)

thanks, jim

config.php below------------------------------------

<?php

$PHORM_VALDEFS = "valdef.txt";

$PHORM_TO = $T8;

$PHORM_ACK = "thankyou.html";

$PHORM_TMPL = "email.txt";

$PHORM_SUBJECT = "Thank you for your order!";

$PHORM_FROM = "orders@healthresources.net";

$PHORM_LOG = "orders.txt";

$PHORM_LDELIM = ",";

$PHORM_LOGQUOT = "\"";

$PHORM_CCEXP = $D3.$D2;

$PHORM_ITEM = $R1;

if ( $PHORM_ITEM == "1" )

{

$UNIT = "24.95";

$SHIP = "6.95";

$GROSS = "24.95";

$TOTAL = "31.90";

}

if ( $PHORM_ITEM == "3" )

{

$UNIT = "19.99";

$SHIP = "6.95";

$GROSS = "59.97";

$TOTAL = "66.92";

}



$PHORM_LOGVAR[1] = "'type' 'blank' 'blank' 'blank' 'blank' 'salesman'

'blank' 'media' 'blank' 'blank' 'T1' 'T2' 'blank' 'T3' 'T4' 'blank' 'blank'

'blank' 'T5' 'D1' 'T6' 'blank' 'T8' 'blank' 'blank' 'blank'

'blank''blank''blank''blank''blank''blan
k' 'T7'

'blank''blank''blank''blank''blank''blan
k''blank''blank''blank''blank''blank

''blank''blank''blank''blank''blank''bla
nk''blank''blank''blank' 'R1' 'T10'

'PHORM_CCEXP' 'blank' 'blank' 'blank' 'blank' 'GROSS' 'blank' 'blank'

'blank' 'blank' 'SHIP' 'TOTAL' 'blank' 'blank' 'blank' 'blank' 'blank'

'blank' 'blank' 'blank' ";

$PHORM_LOGVAR[2] = "'ITEMID' 'blank' 'R1' 'UNIT' 'blank' 'blank' 'blank'";

$PHORM_LOGVAR[3] = "NEXTREC";

?>









Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com