Something about the Contact Form

Creating and modifying plugins.
Post Reply
Davy
Regular
Posts: 109
Joined: Fri Oct 13, 2006 2:06 pm
Location: The Netherlands

Something about the Contact Form

Post by Davy »

Hey!

I want to do two things with the Contact Form plugin:
1. I want to make radio buttons, that place their content in the message body.
2. I want the user's e-mailaddress to appear in the 'From'-field.

Can someone help?
Thanks!
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Something about the Contact Form

Post by garvinhicking »

Hi!
Davy wrote:Hey!

I want to do two things with the Contact Form plugin:
1. I want to make radio buttons, that place their content in the message body.
2. I want the user's e-mailaddress to appear in the 'From'-field.

Can someone help?
Thanks!
That would only be possible either jusing javascript in the guestbook.tpl, or inserting PHP code that evaluates the radio buttons and transports them into the content variable; the second option would only be possible using PHP.

The contactform plugin is rather simplistic, so if you know some basic PHP, you could have a stab at it?

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Davy
Regular
Posts: 109
Joined: Fri Oct 13, 2006 2:06 pm
Location: The Netherlands

Re: Something about the Contact Form

Post by Davy »

I know HTML (so I can create radio buttons), but not much PHP. However, I'l look at the code tomorrow (no nightly! :) ).
Post Reply