Jump to content


Photo

Simple Session Question


  • Please log in to reply
1 reply to this topic

#1 mourningreign

mourningreign
  • Members
  • PipPip
  • Member
  • 13 posts

Posted 15 March 2006 - 05:16 AM

The first page:
Starts the session and gets the session value from the form.

session_start();

$_SESSION['picture'] = $_POST['picture'];

The second page:
Starts the session and attempts to place the session value in a new form.

session_start();

$_SESSION['picture'];

<input name="upload0" type="file" value="<?php echo $_SESSION['picture']; ?>" size="25" />

Nothing displays!

#2 greycap

greycap
  • Members
  • PipPipPip
  • Advanced Member
  • 31 posts

Posted 15 March 2006 - 08:33 AM

value cant be set with file inputs.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users