Contact form
Posted: 19 September 2004 10:58 AM   [ Ignore ]  
Summer Student
Total Posts:  11
Joined  01-05-2003

Estimate Form

I am having issues with the best way to insert a contact form into the body of the page.

The form would contain your typical things like address contact name phone numbers ...one area for more detailed information and a submit button which would then send to my email address all information entered.

I have someone helping me with my site and they are doing an awesome job.  I just like to try and do some myself ...prolly a mistake! 

Anyhelp would be greatly appreciated.

Thank you

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

You should be able to do that with the Contact Form tag.  You could try something like this:

{exp:email:contact_form user_recipients="false" recipients="admin@yoursite.com" charset="utf-8"}

<p><label for="name">Your Name:</label><br />
<
input type="text" id="name" name="name" size="40" maxlength="35" value="{screen_name}" /></p>

<
p><label for="from">Your Email:</label><br />
<
input type="text" id="from" name="from" size="40" maxlength="35" value="{member_email}" /></p>

<
p><label for="subject">Subject:</label><br />
<
input type="text" id="subject" name="subject" size="40" value="Estimate Request" /></p>

<
p><label for="phone">Phone Number:</label><br />
<
input type="text" id="phone" name="required[]" size="40" /></p>

<
p><label for="address">Address:</label><br />
<
textarea id="phone" name="required[]" rows="4" cols="40"></textarea></p>

<
p><label for="message">Details:</label><br />
<
textarea id="message" name="message" rows="18" cols="40">
Estimate Request from: {member_name}
Sent at
: {current_time format="%Y %m %d"}</textarea></p>

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

{/exp:email:contact_form}

 Signature 

Chris Curtis
chriscurtis.org

Profile
 
 
Posted: 19 September 2004 08:38 PM   [ Ignore ]   [ # 2 ]  
Summer Student
Total Posts:  11
Joined  01-05-2003

Chris,

I am aware of how to make that work.  The problem I am having is that the way I designed my site The main links on my site are all independent templates and then I used categories to dynamically create the rest of the navigation so I can add or take away as needed.

This might have not been the best way but it seemed to work.

From what I am gathering now I will have to create new template to introduce the form page.

I am trying to stay away from that.

Any further ideas would be greatly appreciated.

Thanks

Profile
 
 
Posted: 19 September 2004 11:04 PM   [ Ignore ]   [ # 3 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  9868
Joined  06-19-2002

Not positive I understand what the problem is.  Are you saying you’d rather the contact form just be an entry?

You can put that code above in an entry as long as you use the Allow EE Code Plugin when you render the entry.

 Signature 

Chris Curtis
chriscurtis.org

Profile
 
 
Posted: 20 September 2004 07:23 AM   [ Ignore ]   [ # 4 ]  
Summer Student
Total Posts:  11
Joined  01-05-2003

Chris,

That is exactly what I want to do.  Where do I place the -

{exp:allow_eecode}

{body}

{/exp:allow_eecode}

So that I can add the form to the entry?

Profile
 
 
Posted: 20 September 2004 10:14 AM   [ Ignore ]   [ # 5 ]  
Moderator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  32861
Joined  05-14-2004

You would place that on your individual entry template, whatever it’s called.  I’d suggest you do that on a weblog where only you have access - otherwise it’s a bit of a security issue. =)

 Signature 
Profile
MSG
 
 
   
 
 
‹‹ Statistics for links?      RSS feeds ››
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: 63
Total Topics: 81924 Total Anonymous Users: 43
Total Replies: 440353 Total Guests: 298
Total Posts: 522277    
Members ( View Memberlist )