[nycphp-talk] Passing info entered into HTML FORMS into SESSION variables.
PaulCheung
paulcheung at tiscali.co.uk
Sun Nov 18 14:43:48 EST 2007
HELP !! What is doing wrong?? I want to take the values entered into HTML
FORMS fields ("DATA" "RESULT" and "NOTE") and put them into $_SESSION
variables, which is not happening. Has anybody any ideas why not ?
<TR><TD>ACTUAL OUTPUT:</TD><TD><INPUT disabled="count" name="data_ct"
size="2" value="128"></TD>
<TD><TEXTAREA name="data" cols="106" rows="2"
onkeyup="calcCharLeft(this,128);"></TEXTAREA></TD></TR>
<TR><TD>ACTUAL RESULT:</TD><TD><INPUT disabled="count" name="result_ct"
size="2" value="255"></TD>
<TD><TEXTAREA name="result" cols="106" rows="3"
onkeyup="calcCharLeft(this,255);"></TEXTAREA></TD></TR>
<TR><TD>TEST NOTE :</TD><TD><INPUT disabled="count" name="note_ct"
size="2" value="255"></TD>
<TD><TEXTAREA name="note" cols="106" rows="3"
onkeyup="calcCharLeft(this,255);"></TEXTAREA></TD></TR>
<?php
$t = $row['data']; $u = $row['result']; $v = $row['note'];
$_SESSION['data'] = $t; $_SESSION['result'] = $u;
$_SESSION['note'] = $v;
echo(' data = ' .$t. ' result = ' .$u. ' note = ' .$v. "<BR>"); ?>
Paul
More information about the talk
mailing list