Forums

PHP

This topic is locked

UD and PHP variable assignment

Posted 10 Apr 2002 03:40:39
1
has voted
10 Apr 2002 03:40:39 chris chris posted:
I have the following html form variables
MnuMonth, txtday, MnuYear, & hdnWeekNum

I am trying to do the following
$strDate=StrtoTime(mnumonth." ".txtday." ".mnuyear)

and then hdnWeekNum=Date($strdate,"x" to set hdnweeknum to the week number

It appears that any reference I make to mnumonth actually references the literal 'mnumonth'

How do I tell php to reference the actual html form field variable contents of mnumonth

thanks for any help

Replies

Replied 12 Apr 2002 18:47:30
12 Apr 2002 18:47:30 Eric Kaiser replied:
It would appear that your concatenation is wrong. Instead of:
$strDate=StrtoTime(mnumonth." ".txtday." ".mnuyear)

Try:

$strDate=StrtoTime($mnumonth . $txtday . $mnuyear)

Reply to this topic