Jump to content

Recommended Posts

Posted

Hi Folks!

 

I am new to form creation so bear with me but what would be the best way to create forms to get info?

 

I haven't learned css well yet. Will it work with tch if I create them with html code in my html editor?

 

What would the "action" be if so, or "where directed"??

 

 

Otherwise I will learn the best method.

 

thanks :)

Posted (edited)

I create my forms using HTML. Then I call an action to a CGI script using the "POST" method.

 

Example using a Perl script:

...

Edited by TCH-Bruce
Posted

Thanks.

 

I tried one from my html editor and when I click submit, it gives me a warning window from Internet Explorer about sending an email and revealing users email address to recipient and email not encrypted.

 

Who wants that?

 

???

Posted

So, Bruce I would have to have my cgi setup on server?

Posted

Mike, you don't have to have (and I don't think Bruce implied either) CGI setup to run forms. The action of forms can call a plethora of things from CGI to PHP to itself. As far as your warning message, you might wanna post your code for us to take a look at to see what the problem is.

Posted

Ok, here's the "mess" or "misunderstanding I've got:

 

 

<form name="PCClients" action="http://www.michaelstreeter.com/" method="post">

 

 

<table border="0">

<tr>

<td><input type="text" name="firstname" size="40" maxlength="256" value="Enter First Name">

</td>

</tr>

<tr>

<td><input type="text" name="lastname" size="40" maxlength="256" value="Enter Last Name">

</td>

</tr>

<tr>

<td><input type="text" name="emailaddr" size="40" maxlength="256" value="Enter Email Address">

</td>

</tr>

<tr>

<td><input type="text" name="city" size="40" maxlength="256" value="Enter Your City">

</td>

</tr>

<tr>

<td><input type="text" name="state" size="40" maxlength="256" value="Enter State">

<br></td>

</tr>

</table>

<br><br>

 

Check the Service(s) You Are Interested In:

<br><br>

<table border="0">

<tr>

<td><input type="checkbox" name="services" value="Web Site Design"> Web Site Design<br>

</td>

</tr>

<tr>

<td><input type="checkbox" name="services" value="Web Hosting , Domain Name, etc"> Web Hosting , Domain Name, etc<br>

</td>

</tr>

<tr>

<td><input type="checkbox" name="services" value="Computer Training"> Computer Training<br>

</td>

</tr>

<tr>

<td><input type="checkbox" name="services" value="Software Training"> Software Training<br>

</td>

</tr>

<tr>

<td><input type="checkbox" name="services" value="Custom Programming ( MSaccess)"> Custom Programming ( MSaccess)<br>

</td>

</tr>

</table>

<br><br>

 

If You Are Interested In Web Design:<br><br>

 

<table summary="" border="0">

<tr>

<td><input type="checkbox" name="typeofsite" value="Small Personal Site"> Small Personal Site<br>

</td>

</tr>

<tr>

<td><input type="checkbox" name="typeofsite" value="Hobby Site"> Hobby Site<br>

</td>

</tr>

<tr>

<td><input type="checkbox" name="typeofsite" value="Small Business"> Small Business<br>

</td>

</tr>

<tr>

<td><input type="checkbox" name="typeofsite" value="Intermediate Size Business"> Intermediate Size Business<br>

</td>

</tr>

<tr>

<td><input type="checkbox" name="typeofsite" value="Large Business"> Large Business<br>

</td>

</tr>

</table>

 

<br><br>

Leave Any Additional Comments:

<br>

<table border="10">

<tr>

<td><textarea name="comments" cols="30" rows="10">

 

</textarea></td>

</tr>

 

</table><br><br><input TYPE="reset" VALUE="Clear Form">

 

<INPUT TYPE="hidden" NAME="email_to" VALUE="mic@michaelstreeter.com">

<input type="submit" value="Submit">

</form>

 

 

thanks for the help Rock Sign

Posted

It's safe to say that this needs fixing

 

<form name="PCClients" action="http://www.michaelstreeter.com/" method="post">

 

Your form should point to a specific file that isn't the front page of your site. The page it should point to needs to be able to do the following

  • Parse the data
  • Check it for validity
  • Email you the data

There are plenty of cgi/perl or php scripts that can do that.

 

But right now, your form is sending all the data to your index page... actually just your public_html directory... and that's incorrect.

Posted

:goof: ooops!

 

better fix that.

 

thanks.

Posted (edited)

Mike...TCH Jack has an awesome Form Mail script that he's been working on and upgrading frequently for quite some time. You can read more about it here: SureFire Web Design Ultimate Form Mail. You'll have to learn some new things...but he makes it pretty easy and provides a support forum just for that script!

Edited by natimage
Posted

:whip: Sounds like a great idea to me.

 

thanks Rock Sign

Posted

:whip: TCH JACK THANK YOU!!!

 

( all caps do to massive elation )

 

Rock Sign

thanks to all of you tch folks for the help.

 

For me? Jacks script was the way to go.

 

It just works great !!!!

Posted

Glad you like it. Thank you Natimage for recommending.

 

There are lots of form processors out there. I'm glad you find mine worthwhile.

Posted
There are lots of form processors out there.  I'm glad you find mine worthwhile.

 

That may be, Jack, but I tried A LOT of them, and they don't cut the mustard like yours does. I put a link on my site for you and voted at hotscripts.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...