Skip to main content
June 15, 2009
Question

2 things - email recordset in PHP and insert record on click

  • June 15, 2009
  • 1 reply
  • 677 views

I have two questions.

1.  I have an apply now button that I want a user to click.  When they click I want it to send the recordset for that page to an email user.  How do I go about setting this up?

2.  When that same button is clicked, I want that recordset to be inserted into a database.

I am guessing I need some function that is called when the apply button is clicked.  The recordset on the apply button will have an email address that is a variabled called contact.

Thanks.

This topic has been closed for replies.

1 reply

DwFAQ
Participating Frequently
June 15, 2009

Use insert record server behavior and append an email script to it which is easily found by googling.

June 15, 2009

Perhaps I wasnt clear on button.  It is a hyperlink for a persons email.  There is no form on the page.  There is a recordset showing all jobs that are approved and a link that says apply now.  When the user clicks apply now, I want part of that user information emailed to the contact in the mailto: reference.

June 16, 2009

Try to create form to wrap the "Apply Now" button. In form properties, in Action field if u have any redirect page after user clicks just choose the page here. For the button, assume the name is "submit". Then in code, add like this

if (isset($_POST['submit'])) {

...

do the mail function

...

}