Jump to content

weird session setting problem


aebstract

Recommended Posts

-835

 

This is the output of me entering a phone number in to my 3 field area. It works if I echo each post variable, but when I try to echo my session it displays the above.

 

The form piece:

<input type=\"text\" size=\"3\" name=\"phonenumber1\" value=\"$_POST[phonenumber1]\" />
<input type=\"text\" size=\"3\" name=\"phonenumber2\" value=\"$_POST[phonenumber2]\" />
<input type=\"text\" size=\"3\" name=\"phonenumber3\" value=\"$_POST[phonenumber3]\" />

 

The session being set:

$_SESSION['telephone'] = $_POST['phonenumber1'] - $_POST['phonenumber2'] - $_POST['phonenumber3'];

Link to comment
https://forums.phpfreaks.com/topic/87426-weird-session-setting-problem/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.