Forum Moderators: mack

Message Too Old, No Replies

building a form

         

stef25

1:13 pm on May 5, 2004 (gmt 0)

10+ Year Member



id like to make a simple form for my website allowing people to use the usual elements like dropdown list, radio buttons, leave a comment etc.

no sensitive or financial information

what is the easiest way to have this emailed to me?

formmail is still a bit daunting ...

rharri

9:33 pm on May 5, 2004 (gmt 0)

10+ Year Member



The formmail script that you need to alter is really minimal. You need to know the path to your mailserver (usually sendmail), the path to Perl, browser URL and IP. The form can be anything you want with only a hidden field with your email address. Download the script and take a look.

OTOH, if your site is hosted, you may already have formmail set up by the hosting firm.

Bob

Strange

9:32 pm on May 6, 2004 (gmt 0)

10+ Year Member



The easiest way to have the form infomation mailed to you is to set the form to post to your email address. You can set that attribute right in the opening form tag.

pkropp

2:54 pm on May 7, 2004 (gmt 0)

10+ Year Member



The only problem with posting the form to your e-mail address is that it will pop up all kinds of windows security messages. Form mail is not that hard do a search and you will find easy step by step instructions. If I can figure it out in a few hours than anyone can figure it out in much less time.

Paul

chicagohh

4:26 pm on May 7, 2004 (gmt 0)

10+ Year Member



Are you on a Windows or Nix server?

stef25

11:30 am on May 10, 2004 (gmt 0)

10+ Year Member



apologies for the delay in reply and thanks to all.

ok so ill go for formmail. ive read the instructions and doesnt seem to hard

im pretty sure i altered what i needed in the .pl file and i used the formmail guide to configure my form html code

path to perl is /usr/bin/perl but i dont know how to access this. through ftp or online file manager i dont see a usr directory

path to sendmail is /usr/sbin/sendmail but i dont see that dir either

am i supposed to access the perl dir via ftp and just drop the pl file in there?

im running on a unix server

big thanks to all!
stef

stef25

12:48 pm on May 10, 2004 (gmt 0)

10+ Year Member



alright i was to quick. it seems im able to drop the script into any folder

the w3 schools has a usefull link where i edited the code: [w3schools.com...]

when i fill in the path to my own script in the action field there, i get a succesfull result (i think). i definatly worked my way through some errors there

path to my script is:

[example.org...]

but when i hit submit on my own form, nothing happens. im assuming its something really simple

many thanks for any advise on this
stefan

form code:

<form action="http://www.example.org/calamansi/scripts/calamansi_contactus.pl" method="POST" enctype="multipart/form-data" name="contactform">
<p>Name
<input name="realname" type="text">
</p>
<p>Email
<input name="email" type="text">
</p>
<p>Your Message to us</p>
<p><textarea name="message" cols="40" rows="5" id="message"></textarea></p>
<input name="submit" type="button" value="Send!" />
<input name="redirect" type="hidden" value="http://www.example.org/calamansi/redirect.htm" />
<input name="subject" type="hidden" value="calamansi form submission" />
<input name="recipient" type="hidden" value="calamansi@example.org" />
<input name="required" type="hidden" value="email, realname" />
<input name="print_config" type="hidden" value="email, realname" />
<input name="missing_fields_redirect" type="hidden" value="http://www.example.org/calamansi/error.htm" />
</form>

[edited by: mack at 2:55 pm (utc) on May 12, 2004]
[edit reason] Specifics removed, thanks. [/edit]