/    Sign up×
Community /Pin to ProfileBookmark

Testimonial with Picture Upload form

I want to create a webform that contains the following fields:
* Fields for entering user details (Name, email address, location)
*
Textbox for entering a testimonial
* Field for submitting a picture (from user’s computer)

Once the user clicks the Submit button, details + picture will either be sent to my email address, or to a mySQL database (whichever is easier for you to write. Any option is good), and user will land on a different page where I will put some thank-you text.

These are the basics, and would help me a lot. If you want to go over the top in helping me, please also show how to limit sent files to pictures only (so users can’t send me malicious code) and how to block multiple submits (when user re-clicks submit button by mistake).

Come to think of it: Is this better done client-side (javascript) or server-side (PHP)?

Thanks guys!

to post a comment
PHP

0Be the first to comment 😎

×

Success!

Help @singing_lessons 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.18,
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: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

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