contact form question
Posted: 16 July 2004 11:52 AM   [ Ignore ]  
Summer Student
Total Posts:  6
Joined  03-18-2003

hi guys.  one contact form question in three parts.  consider this an apology in advance.

i’m trying [really] to make a customized contact form with several textarea fields.  the resulting email will be read by not-so-technical people, so it needs to be more readable than not.

1. can hard returns be added in the form, possibly by using a \n or something of that nature?

2. the form is still not redirecting correctly; it’s going to the user message template for the first submittal, but if i click the ‘back’ button and submit again, it redirects to the correct page. [?]

3. i’m now getting an error message that says i’ve exceeded the maximum number of emails per day.  wha?

Here’s the code, stripped down to one textarea [there are 4 more]:

{exp:email:contact_form recipients="branderson@checkfree.com" return="http://pwpweb01/ccn/index.php?/contact/thanks"}

<p>your email address:<br/>
<
input type="text" name="from" size="40" maxlength="35" /></p>

<
p>subject:<br/>
<
input type="hidden" name="required[]" value="subject: " />
<
input type="text" name="required[]" size="40" maxlength="35" /></p>

<
p>the news:<br/>
<
input type="hidden" name="required[]" value="The News: " />
<
textarea name="message" rows="8" cols="84"></textarea></p>

<
p><input name="submit" type='submit' value='Submit Form' /></p>

{/exp:email:contact_form}

any help or a nudge in the right direction would be outstanding.  is there detailed contact form documentation located anywhere so i can stop bugging you fine folks?

Profile
 
 
Posted: 20 July 2004 06:31 PM   [ Ignore ]   [ # 1 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  9868
Joined  06-19-2002

You can find the contact form documentation in the manual.


1. What are you asking about, specifically?  Do you mean can you use the return/enter key while in a textarea field?  Yes.  Or are you perhaps asking how to add line breaks to the email output that you receive?

You might look at the Plugin Submission form on the EE Plugins site.  It uses a fairly complex Contact Form including a number of hidden fields that are used for formatting the email output.


2. How is it not redirecting correctly?  If you’re trying to include multiple textareas, then it may be an issue of EE thinking you don’t have a required field filled in.

For instance, from your above snippet you don’t have the “subject” field specified.  It should be like this:

<p>subject:<br/>
<input type=“hidden” name=“required[]” value=“subject: ” />
<input type=“text” name=“subject” size=“40” maxlength=“35” /></p>

For additional textarea fields, you should use “message[]” as the ‘name’ of the field.


3. I believe that value (max number) may be set inside system/modules/email/mod.email.php around line 32.

 Signature 

Chris Curtis
chriscurtis.org

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 64944 Total Logged-in Users: 72
Total Topics: 81925 Total Anonymous Users: 52
Total Replies: 440355 Total Guests: 300
Total Posts: 522280    
Members ( View Memberlist )