Go Back   Novahq.net Forum > phphq.Net > phphq.Net Forums
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 02-07-2008, 08:39 PM
glennpaddock is offline glennpaddock
Registered User

Join Date: Feb 2008
Posts: 4

phmailer subject validation

Hello everyone...

I'd like to modify the "subject" field so that a seclection is required...

Please choose -->
Yes
No

Thanks!
Glenn
Reply With Quote
  #2  
Old 02-07-2008, 09:36 PM
Scott is offline Scott
Scott's Avatar
AKA. Panther

Join Date: Sep 2001
Location: Minneapolis, MN
Posts: 10,927

do you also want "yes" or "no" as your subject?
__________________

04' Dodge SRT-4, Mopar Stage 3, 406whp/436wtq
Reply With Quote
  #3  
Old 02-08-2008, 05:45 AM
glennpaddock is offline glennpaddock
Registered User

Join Date: Feb 2008
Posts: 4

Thanks for the quick response. I used the "yes" and "no" as an example. I actually want the options to be:

Please choose
Augusta
Bangor
Biddeford
Brunswick
Lewiston
Portland
Portsmouth
Windham

With each going to a different e-mail address.
Reply With Quote
  #4  
Old 02-08-2008, 12:22 PM
Scott is offline Scott
Scott's Avatar
AKA. Panther

Join Date: Sep 2001
Location: Minneapolis, MN
Posts: 10,927

That feature is already built into the script... Open phmailer.php and change $use_subject_drop to true and modify $subjects and $emails to your liking.
__________________

04' Dodge SRT-4, Mopar Stage 3, 406whp/436wtq
Reply With Quote
  #5  
Old 02-08-2008, 12:31 PM
glennpaddock is offline glennpaddock
Registered User

Join Date: Feb 2008
Posts: 4

Hi Scott,

I apologize if I'm missing something. I've got the form working the way I want other than I would like the subject drop down to be required. The way I have it set up now, many people don't select one of the options. They leave the first option selected (Augusta), so many of the messages get delivered to the wrong address.

Current options in drop down:
Augusta
Bangor
Biddeford
Brunswick
Lewiston
Portland
Portsmouth
Windham

Thanks!
Reply With Quote
  #6  
Old 02-15-2008, 09:06 AM
glennpaddock is offline glennpaddock
Registered User

Join Date: Feb 2008
Posts: 4

Hi Scott,

I was wondering if you had any further infor for me on this....thanks!
Reply With Quote
  #7  
Old 02-15-2008, 02:41 PM
Scott is offline Scott
Scott's Avatar
AKA. Panther

Join Date: Sep 2001
Location: Minneapolis, MN
Posts: 10,927

Replace your script with the script below. Pay attention to how the subjects and emails are set in the arrays. The first subject is "Please select" while the first email is blank. This is a quick hack that should work for you.
Attached Files
File Type: rar phmailer.rar (7.9 KB, 14 views)
__________________

04' Dodge SRT-4, Mopar Stage 3, 406whp/436wtq
Reply With Quote
Reply


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

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help for seting the link name with some string prefix to phmailer subject field..please help ..its sandeep phphq.Net Forums 0 06-02-2010 12:07 PM
phMailer - add Subject EntryField rosdi phphq.Net Forums 0 04-30-2009 11:08 AM
phMailer Autoselect Subject from Array mike92772 phphq.Net Forums 2 01-30-2009 01:53 PM
PhMailer: help xist phphq.Net Forums 0 05-19-2008 04:07 PM
phMailer - Would like to prepend e-mail subject line sgharris phphq.Net Forums 1 11-13-2007 05:11 PM


All times are GMT -5. The time now is 03:58 AM.




Powered by vBulletin®