Link to home
Start Free TrialLog in
Avatar of libertyforall2
libertyforall2Flag for United States of America

asked on

web forms without ads for contact information in html and/or cgi

I have been working with some templates but am having no success. I need  simple web form that I can embed within a cgi file. The form would have a default contact with a pull down tab that allows to specify which person the user wishes to contact. Ideally, it would include some type of checking to prevent spam. Please help!!
ASKER CERTIFIED SOLUTION
Avatar of TimBare
TimBare
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of libertyforall2

ASKER

It will be emailed to me via default or to other people within the pull down menu.
When the form is filled out at submitted, it will be sent to the email of the default or person specified within the pull down tab. It is a basic contact form regarding any thing on the website and can be a simple for that has person, subject, & body. The only other issue is that is should check somehow to make sure it is not a robot but a real person.
I'm not a CGI guy (i prefer PHP), so we'll have to wait for someone else to chime in for CGI code to do the email function.

As for the check, you'll need a captcha (the scrambled letters in a box that the user will have to type in order for the form to be submitted). You may check in to ReCaptcha.

Sorry I can't be more help w/ the email part.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Could this php script be embedded within a cgi file? Its fine it there is a seperate php file that needs to be accessed in order to use the information. My main concern is to be able to have the form within an existing webpage ending in index.cgi
Also, does the php script above incorporate some type of catptcha? If not, could you modify it to do so?
SOLUTION
Avatar of Jason C. Levine
Jason C. Levine
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
"A PHP file works the same way as a CGI file.  You could run the PHP as a separate page.  Instead of:

<form action="/path/to/perl/script.cgi">

You just do

<form action="/path/to/php/script.php">"

          Are you saying that I would create a seperate php file with the code above and then within the index.cgi file write a line of code that says <form action="/path/to/php/script.php">?


>> Are you saying that I would create a seperate php file with the code above and then within the index.cgi file write a line of code that says <form action="/path/to/php/script.php">?

Assuming your server supports PHP, yes that is mostly correct.  It's a little oversimplified as I am also assuming (based on your question) that you already have the HTML code for the form in the index.cgi file.  My instructions above assume that there is a form tag already present and you just change the action attribute to point to a php file.
Turns out this web page is actually an htm though most others are cgi. I have included the code along with the line

<form action="/path/to/php/script.php"> modified to reflect the actual path and name. I have copied the script and place the php file on my server. Nothing seems to appear. How do I know if php is supported?
Create a new page called info.php

In that page put the following line and nothing else:

<?php phpinfo(); ?>

Load the page on the server and call it in the browser.  If it returns information, PHP is configured.  If not, it isn't.
I added a page called info.php and when I typed in the url only the actual line script appeared <?php phpinfo(); ?>

See the link below

http://mkwc.ifa.hawaii.edu/vmap/info.php
So PHP is not installed.  You'll have to use a perl script.
I need help on this
So why did you accept as answers?

We can try to continue...

Did you try this one?

http://www.boutell.com/email/