Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

submit a checkbox value and email the value to helpdesk

Status
Not open for further replies.

janise

Technical User
May 25, 2003
161
US
Hello all,
I have some issues that I hope to get help from you on.

I have created a form to be submitted to the database.
The form contains 15 checkboxes.
The idea is that a user opens up this form to send a request to our helpdesk.
This user can check one or several checkboxes at the same time.
When the user completes the form and hits the submit button, all values for the form including the checkboxes get submitted to our database and values of these checkboxes are emailed to the help.

9 of th 15 checkboxes are coded like these 3;

<input type="checkbox" name="service" value="HR">HR
<input type="checkbox" name="service" value="IT">IT
<input type="checkbox" name="service" value="Admin">Admin

The remaining 6 checkboxes are coded like these:

<input type="checkbox" name="service" value="gen@domain.com">General Services<input type="checkbox" name="service" value="pay@domain.com">Payrol

The challenge we have now is since the checkboxes with HR, IT, Admin (These are just examples) are going to one email address which is helpdesk@domain.com, how can we code it in such that helpdesk will know who is making the request?

For instance, we can just say:
if request.form("service") = "Admin" then
strEmail = "admin@domain.com"
end if
We can say that because as indicated all checkbox values except ones with email addresses as values, will go to helpdesk but helpdesk needs to have the ability to tell who is making the request.

i need your assistance, please.
Hope this is clear.
 
You could simply include the value in either the subject or body of the email. I have a contact form that asks what the contact is pertaining to with radio buttons (requests, tech issues, something else) and I just include that as the first line of the body of the email. My contact emails look something like:
Contact Email: Their email here
Contact Type: whatever
Contact IP: Their IP address here

text they typed in textarea

-T

01000111 01101111 01110100 00100000 01000011 01101111 01100110 01100110 01100101 01100101 00111111
The never-completed website:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top