472,953 Members | 1,699 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,953 software developers and data experts.

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 2562
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Craig | last post by:
I keep getting the error "Error: Bad/No Recipient" when submitting a form using formmail.pl Here is the part of the formmail.pl that you are supposed to alter to suit your needs using fake url...
4
by: Hmmm... | last post by:
I am setting up a web site for a friend. Her hosting service does not support Sendmail. It is an NT server. They recommend I use Smtp. I have been using something like formmail.pl when I have...
5
by: John Oliver | last post by:
I'd like the email produced by FormMail to show a specific From: address rather than postmaster@server.host.name Googling isn't helping me... not sure what to look for :-( -- * John Oliver ...
0
by: Benjamin Bittner | last post by:
Hallo NG, ive searched a lot in some google groups, and found many threads, but nothing that helped me. Here is the scenario: I have an aspx page which loads a user control in page.onInit like...
2
by: Rico | last post by:
Hello, I'm using formmail.asp which is an emailing utility. Basically, the user fills out a request page, clicks "Submit" and the page posts to formmail.asp which emails the user information. ...
1
by: Gerhard | last post by:
How can I create a new contact in exchange server from a vb.net web application?
4
by: laredotornado | last post by:
Hi, I'm using PHP 4.4.4 and have downloaded the free script formmail.php (version 4.1b). Wondered if anyone had experienced the same problem I'm having. I'm submitting a form to formmail.php, but...
1
by: Jangaly | last post by:
Dear friends I try to send a message via my web site to my server and redirect to my e-mail address. In the root of my server I saved the formmail.php. On action part of my form on html-code I wrote...
3
by: Geoff Cox | last post by:
Hello, I am using the formmail.cgi script and wonder if it is possible to have the user enter their email address and then have the results sent to this address by formmail.cgi? If yes, how...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.