Welcome to Geeklog Tuesday, July 14 2020 @ 06:40 am EDT

Geeklog Forums

simple form in a block


Sloophim

Anonymous
What is the best method to use to send simple form information to an email address?

Basically what I'm doing is creating a simple form in a block for users to register for an event. I just want to be able to email that info to a specific address and redirect the user to a static thank-you page.

Seems simple enough till I start looking at all the different ways people are doing it, most way more complex then I need.

Thanks in advance,
Alan
 Quote

Status: offline

Ook

Forum User
Chatty
Registered: 26/07/06
Posts: 39
I have always used cgiemail from http://web.mit.edu/wwwdev/cgiemail/ .

Unix platforms only.

It uses a template. The form is simple.

Template named questions3.txt:
PHP Formatted Code
 To: strangeman@chasm.big                          HEADER LINES
    Subject: questions three
                                                      blank line
    What is your name?              [yourname]
    What is your quest?             [quest]           BODY
    What is your favourite colour?  [colour]
 


Form:
PHP Formatted Code
<FORM METHOD="POST"
 ACTION="http://web.mit.edu/bin/cgiecho/wwwdev/cgiemail/questions3.txt">

Your e-mail address: <INPUT NAME="email"><p>
Your name: <INPUT NAME="yourname"><p>
Your quest: <INPUT NAME="quest"><p>
Your favourite colour: <INPUT NAME="colour"><p>
<INPUT TYPE="submit" value="Send e-mail">
</FORM>

"A conclusion is the place where you got tired of thinking."--Steven Wright
 Quote

All times are EDT. The time is now 06:40 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content