470,815 Members | 1,320 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,815 developers. It's quick & easy.

contact - send to formmail after initial php checks

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
2 2331
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
> 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.

Similar topics

reply views Thread by Craig | last post: by
4 posts views Thread by Hmmm... | last post: by
5 posts views Thread by John Oliver | last post: by
reply views Thread by Benjamin Bittner | last post: by
1 post views Thread by Gerhard | last post: by
4 posts views Thread by laredotornado | last post: by
3 posts views Thread by Geoff Cox | last post: by
reply views Thread by mihailmihai484 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.