View previous topic :: View next topic |
Author |
Message |
Bigun Advocate
Joined: 21 Sep 2003 Posts: 2198
|
Posted: Mon Jan 31, 2005 2:34 pm Post subject: Simple CGI Question |
|
|
Is there already a CGI script that will submit a form's information to an e-mail address? _________________ "It's ok, they might have guns but we have flowers." - Perpetual Victim |
|
Back to top |
|
|
texas1emt Guru
Joined: 27 Oct 2003 Posts: 352 Location: San Antonio, TX
|
Posted: Mon Jan 31, 2005 3:27 pm Post subject: |
|
|
Of course! A good place to look is Hotscripts.com. I've made a link for you to go straight to the "Form Processors" section of their CGI area right here.
They have a TON of scripts. They have a lot of PHP form processors, too, which you might find a little easier to set up and implement. I don't mean to rain on your parade by suggesting PHP instead, it's just my $0.02. _________________ M. Hayden - San Antonio, TX |
|
Back to top |
|
|
Bigun Advocate
Joined: 21 Sep 2003 Posts: 2198
|
Posted: Mon Jan 31, 2005 4:04 pm Post subject: |
|
|
Crap... looking through this assignment, it looks like a pre-made CGI script isn't going to cut it. It looks like I'm going to have to create a bash CGI script. It's calling for certain length requirements for variables, a dictionary check for password, too much for a pre-made to handle. But:
How do I perform a dictionary password check through bash?
How do I send an e-mail through a command line?
I should be able to handle the rest.
Sorry, but this turned into a program question rather than a network question, move the thread if applicable. _________________ "It's ok, they might have guns but we have flowers." - Perpetual Victim |
|
Back to top |
|
|
thebigslide l33t
Joined: 23 Dec 2004 Posts: 792 Location: under a car or on top of a keyboard
|
Posted: Mon Jan 31, 2005 6:11 pm Post subject: |
|
|
is this a homework question? |
|
Back to top |
|
|
Bigun Advocate
Joined: 21 Sep 2003 Posts: 2198
|
Posted: Tue Feb 01, 2005 12:49 am Post subject: |
|
|
thebigslide wrote: | is this a homework question? |
Work, it's a new job and I think the guy is trying to put me through a ringer. _________________ "It's ok, they might have guns but we have flowers." - Perpetual Victim |
|
Back to top |
|
|
lookinin Guru
Joined: 21 Jan 2005 Posts: 486
|
Posted: Tue Feb 01, 2005 1:16 am Post subject: |
|
|
I don't know if this is helpful or not, but if the package sys-apps/miscfiles is installed, you could use grep, if there's any output it's in the dictionary file:
Code: | grep whetstone /usr/share/dict/words |
And as for mail, you could use sendmail - in it's simplest form - check "man sendmail" for more info (like if you want it to be from an address other than the logged in user):
Code: | echo "your text" | sendmail user@host |
|
|
Back to top |
|
|
|