Here's an example of what I am talking about. If you try this out, you will
find that the spaces have been altered to "+" signs. This is because when
you use the get method in the form, it encodes the form elements into the
url of the action. You could change the action to post and then change the
body text accordingly using javascript. This method gives a great deal of
control over the email that is being sent. I have made the to address
alterable in the form, but you could fix that to any address you like in the
action of the form and then remove the first table row. You will get a
security message shown stating you are about to submit an email, but I think
this is quite a nice way to send mail from a web page without having to
resort to cgi. Alternatively, you could check out Tripod or Angelfire as
they offer Perl cgi mailing scripts for free, just make your web page link
into their cgi script in the action and alter your form fields in accordance
with their instructions.
Hope that helps you understand what I was suggesting earlier.
Peter.
<!-- Put this in the head section of your html -->
<script type="text/javascript">
function submitForm() {
docment.myForm.submit();
}
function resetForm() {
document.myForm.reset();
}
</script>
<!-- Put this in the body section of your html -->
<form name="myForm" id="myForm" action="" method="get">
<table>
<tr>
<td>To</td>
<td><input type="text" name="to" value=""></td>
</tr>
<tr>
<td>CC</td>
<td><input type="text" name="cc" value=""></td>
</tr>
<tr>
<td>BCC</td>
<td><input type="text" name="bcc" value=""></td>
</tr>
<tr>
<td>Subject</td>
<td><input type="text" name="subject" value=""></td>
</tr>
<tr>
<td>Body</td>
<td><input type="text" name="body" value=""></td>
</tr>
<tr>
<td align="left"><input type="button" value="Clear" name="cmdReset"
onClick="resetForm();"></td>
<td align="right"><input type="button" value="Send" name="cmdSubmit"
onClick="submitForm();"></td>
</tr>
</table>
</form>
"Hywel Jenkins" <> wrote in message
news: m...
> "Peter" <> wrote in message
news:<JZnRa.28753$>...
> > "Joshua St. John" <> wrote in message
> > news:...
> > > I am looking for cgi access so I can create my own form with whatever
> > fields
> > > I want and be able to use someones cgi access to send it. Please
reply to
> > > Thanks
> > >
> > What are you trying to send and where?
>
> What difference does that make? An email form is an email form,
> unless you use action="mailto:..." (then it becomes a lottery).
>
> > You can get a form to submit the
> > fields to you in an email no problem. You can even specify the layout of
the
> > body text using javascript. Depends on what you are trying to achieve.
>
> Why would you use JavaScript to "specify the layout of the body text"?
>
> --
> Hywel