Novahq.net Forum

Novahq.net Forum (https://novahq.net/forum/index.php)
-   phphq.Net Forums (https://novahq.net/forum/forumdisplay.php?f=277)
-   -   phmailer subject validation (https://novahq.net/forum/showthread.php?t=40541)

glennpaddock 02-07-2008 08:39 PM

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

Scott 02-07-2008 09:36 PM

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

glennpaddock 02-08-2008 05:45 AM

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.

Scott 02-08-2008 12:22 PM

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.

glennpaddock 02-08-2008 12:31 PM

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!

glennpaddock 02-15-2008 09:06 AM

Hi Scott,

I was wondering if you had any further infor for me on this....thanks!

Scott 02-15-2008 02:41 PM

1 Attachment(s)
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.


All times are GMT -5. The time now is 04:21 AM.

Powered by vBulletin®