/    Sign up×
Community /Pin to ProfileBookmark

Remember the value of file input

Hi,

I seem to be having a problem remebering the image details on my form.

Basicly if the form is incorrect it goes back. I get it to remember the details by

[code=php]
value=”‘ . $_POST[‘fieldname’] . ‘”
[/code]

This however doesn’t work it my image field. Is there a way around this?

Thanks
k0r54

to post a comment
PHP

6 Comments(s)

Copy linkTweet thisAlerts:
@bokehMay 31.2006 — Is there a way around this?[/QUOTE]No! This behaviour is the sandbox protecting the client. It's like this for a good reason.
Copy linkTweet thisAlerts:
@k0r54authorMay 31.2006 — oh, so there is no way to auto fill in that field? why is that?
Copy linkTweet thisAlerts:
@bokehMay 31.2006 — why is that?[/QUOTE]Due to the privacy and security issues such a behaviour would raise.
Copy linkTweet thisAlerts:
@k0r54authorMay 31.2006 — the only thing i want it to remember is the location on the users HDD or watever. I dont quite see the securtiy issues there. ?

Never mind though - bit of a pain but i suppose its there for a purpose.

Thanks
Copy linkTweet thisAlerts:
@bokehMay 31.2006 — I dont quite see the securtiy issues there.[/QUOTE]Just because you don't see it does not mean it does not exist. Since it is possible to make forms automatically submit themselves if the behaviour you are asking for were to be implemented it would be possible to steal files from clients' machines.
Copy linkTweet thisAlerts:
@k0r54authorMay 31.2006 — oh ... makes more sense now.

Cheers bohek for the explaination.

k0r54
×

Success!

Help @k0r54 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.5,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...