Current location: Hot Scripts Forums » General Community » Script Requests » PHP Mail Form Needed


PHP Mail Form Needed

Reply
  #1 (permalink)  
Old 08-15-03, 03:35 PM
dudeman248 dudeman248 is offline
Newbie Coder
 
Join Date: Aug 2003
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
PHP Mail Form Needed

Okay, I know I am picky, but this is what I want...

A normal PHP mail form script (with to email address, subject hidden). But I want to be able to select the TO: field from a drop down menu but not show the addresses in the HTML source. For example, in the PHP file, have fields like 1="whoever@soandso.com" 2="soandso@soandso.com". In the form the user fills out, they select "Area of Contact". The value number would match the number in the PHP script and send it to the approiate person. It dosen't have to be exactly like what I described, but something along the guidelines. I know this sounds a bit confusing, but if you think you know what i mean, please help. Thanks!

-Sam
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 08-15-03, 05:47 PM
YourPHPPro's Avatar
YourPHPPro YourPHPPro is offline
Community VIP
 
Join Date: Aug 2003
Posts: 430
Thanks: 0
Thanked 0 Times in 0 Posts
Not to state the obvious, but have you checked:

http://www.hotscripts.com/PHP/Script...ors/index.html

If so, which one is the closest to what you want ?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 08-15-03, 06:06 PM
dudeman248 dudeman248 is offline
Newbie Coder
 
Join Date: Aug 2003
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
The one I currently use is DynaForm (http://www.hotscripts.com/Detailed/20173.html)

I like that one very much, but like I said above, I want the number to match for the sendto address. I like DynaForm because if you can find out the address for it, it just displays a little message and you still can't see anything like the to addresses or anything. If you can help, I would appreciate it!

P.s. (I have not gone through all results but I have gone through about 13 or 14 pages worth. I've also tried search but im not exactlly sure what to search for and what i have tried has come up empty.)

-Sam
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #4 (permalink)  
Old 08-15-03, 06:18 PM
YourPHPPro's Avatar
YourPHPPro YourPHPPro is offline
Community VIP
 
Join Date: Aug 2003
Posts: 430
Thanks: 0
Thanked 0 Times in 0 Posts
How about something like:

email.html

Quote:
<form method="POST" action="email.php">
<p><select size="1" name="email">
<option selected value="1">Test 1</option>
<option value="2">Test 2</option>
</select><input type="submit" value="Submit" name="Submit"><input type="reset" value="Reset" name="Reset"></p>
</form>
and email.php

Quote:
<script language="php">

switch($_POST["email"]) {
case "1":
// Set email address to test1@example.com
// Mail to that address
break;
case "2":
// Set email address to test2@example.com
// Mail to that address
default:
// Display error as no number was passed to POST
}

</script>
Wouldn't something like that work ?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #5 (permalink)  
Old 08-16-03, 12:47 AM
dudeman248 dudeman248 is offline
Newbie Coder
 
Join Date: Aug 2003
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
I can't figure out how to get that to work. I don't think I mentioned that I know about "1" about programing and that is just when i have to fix a field that is already there.

I tried using it but couldn't get any other fields to work and even when I tested it, i never got the e-mail.

If anybody can figure out how to get that to work (preferably with DynaForm http://www.hotscripts.com/Detailed/20173.html but with anything would be appreciated. That is exactlly what I want. That, or something close to that.

Last edited by dudeman248; 08-16-03 at 04:04 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #6 (permalink)  
Old 08-18-03, 11:25 AM
jewellgr jewellgr is offline
Wannabe Coder
 
Join Date: Aug 2003
Location: Michigan USA
Posts: 111
Thanks: 0
Thanked 0 Times in 0 Posts
So you just want a script that will send to the approriate email address based on what they select. Our open source mail script may be able to help.
Link: http://www.arecaweb.com/php/mmex/mmex.html


Then in the html form all you have to do is use this code below:

<select name="recipient">
<option selected>Choose a recipient</option>
<option value="email_1@domain.com">email_1@domain.com</option>
<option value="email_2@domain.com">email_2@domain.com</option>
</select>

(Goto site for more details and email us if you have any questions)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #7 (permalink)  
Old 08-22-03, 06:14 PM
dudeman248 dudeman248 is offline
Newbie Coder
 
Join Date: Aug 2003
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
That is what I am currently using. I want something though that dosen't put the e-mail addresses in the HTML. I want the e-mail addresses in the PHP or PERL or CGI script/code.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #8 (permalink)  
Old 08-22-03, 06:17 PM
jewellgr jewellgr is offline
Wannabe Coder
 
Join Date: Aug 2003
Location: Michigan USA
Posts: 111
Thanks: 0
Thanked 0 Times in 0 Posts
Got the the site I suggested click on the contact us link. Fill in the details and send them to us. We will make a custom script for you within a day based on the mmex script.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
how do i work with PHP mail() function darkcarnival PHP 5 08-31-09 06:11 PM
ASP and PHP programmer needed! imediaweb Job Offers & Assistance 22 06-29-05 09:14 AM
PHP Triad/Upload form eddyvlad PHP 6 10-07-03 12:17 AM
php registration form al_ghamdi Script Requests 0 07-11-03 04:13 PM
PHP help ! Submit the form kevin PHP 1 06-24-03 09:09 AM


All times are GMT -5. The time now is 07:16 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.