/    Sign up×
Community /Pin to ProfileBookmark

What’s your opinion – best php/cgi script for..

I was wondering if anyone had an opinion on the best php script to use for this purpose….

a website that contains multiple contact/feedback forms, a couple of which need to have files attached and sent. Also, while validating the form, for the error messages tlo appear on top of the form rather than going to an error page and then going back to make corrections.

I have a few options but nothing that can address all the requirements at the same time. For instance, BFormMail shows the errors on top of the forms as requested BUT does not allow attachments.

I’m trying not have different scripts processing different forms on the same site so any ideas you guys have will be appreciated.

Thanks.

to post a comment
PHP

1 Comments(s)

Copy linkTweet thisAlerts:
@SheldonJul 08.2006 — well simple, PHP can do all of that, quite easily. You could mix in a bit of javascript to do the validation with both PHP and javascript

(Javascript can check if the form it set correctly before the page is processed and display a message or send it to the PHP server side processing, but make sureyou have error validation in PHP also, because if the user has JS disabled there will be none).

PHP can upload and send files as attachments and using the [url=http://php.net/mail]mail[/url] function.

Also you may want to look at using a MYSQL database to store your feedback if you are going to display it later, or just want to keep it for later use.



Its not hard
×

Success!

Help @kobik 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.17,
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,
)...