Jump to content

Simple Session Question


mourningreign

Recommended Posts

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

[code]session_start();

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

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

[code]session_start();

$_SESSION['picture'];[/code]

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

Nothing displays!
Link to comment
https://forums.phpfreaks.com/topic/5008-simple-session-question/
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.