By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,967 Members | 1,684 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,967 IT Pros & Developers. It's quick & easy.

contact - send to formmail after initial php checks

P: n/a
Hi, I have a contact page that, when submit is clicked it checks the inputs
then outputs to a "read only" version of the input form fromwhich the email
can be sent.
How would I go about changing the script so when the submit button is
clicked, it'll check, and if it passes the requirements, it'll be sent (to
the formmail script)?

You can see my coding at:
http://www.mattyjones.co.uk/testing/...ntact/main.inc
(it's a bit rough! and don't worry about the $expa/b stuff - that's there
for a seperate reason)

Thanks

--
Luck is a skill I am yet to acquire!!

Jul 16 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
MrMagooba wrote:
Hi, I have a contact page that, when submit is clicked it checks the
inputs then outputs to a "read only" version of the input form fromwhich
the email can be sent.
How would I go about changing the script so when the submit button is
clicked, it'll check, and if it passes the requirements, it'll be sent (to
the formmail script)?

You can see my coding at:
http://www.mattyjones.co.uk/testing/...ntact/main.inc
(it's a bit rough! and don't worry about the $expa/b stuff - that's there
for a seperate reason)

Thanks


Hi

I've made a couple of changes to your script, you can take a look at
http://www.mike-mac.gen.nz/meetakiwi/Documents/main.inc

I strongly recommend that you change your code from using $email to
$_GET['email'],
http://nz.php.net/manual/en/language...predefined.php and the
security sections document why :-)

HTH
Mike
Jul 16 '05 #2

P: n/a
> MrMagooba wrote:
Hi, I have a contact page that, when submit is clicked it checks the
inputs then outputs to a "read only" version of the input form fromwhich
the email can be sent.
How would I go about changing the script so when the submit button is
clicked, it'll check, and if it passes the requirements, it'll be sent (to the formmail script)?

You can see my coding at:
http://www.mattyjones.co.uk/testing/...ntact/main.inc (it's a bit rough! and don't worry about the $expa/b stuff - that's there for a seperate reason)

Thanks


Hi

I've made a couple of changes to your script, you can take a look at
http://www.mike-mac.gen.nz/meetakiwi/Documents/main.inc

I strongly recommend that you change your code from using $email to
$_GET['email'],
http://nz.php.net/manual/en/language...predefined.php and the
security sections document why :-)


Thanks for the *tweaking* - it shall be used :-). But it still posts
the -passed- original input into a read only form for the user to click the
submit button. What I want to do is, if the inputted details passes my
tests, send the mail, not display in a read only version for the user to
click the submit button again. I really want to use PHPFormMail to send the
mail as it is tried and tested, but at the moment I am scouring the 'net for
mail() tut's so I can replace the read only form with a send mail routine.
Jul 16 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.