Contact Form Problems

G

gdorough

Sorry to intrude, but I have 3 sites using publisher 2003 and all are working
well, although one is new. My Contact Forms work ok, but like you I had
problems. To save me hours of headache I did the following just to make it
simple:
1, The Contact page for elgasia.net is simply the ISP .asp form. All I did
was create an <iframe>and inserted the href to the .asp form or contact.html.
My contact page then opens the contact form in the iframe and the customers
submit. It Took a while to make it simple but it works.
2. The elgasia.info site was different as the php and js verify would not
except the <iframe> without errors, so I simply made a contact.php form page
with the onsite builder and my contact links all direct customers to that
form,which opens in the same window, which they submit and no problems. All I
had to do then was put links on the onsite php back to the index.htm using
the ISP editor.
3. I use FTP (I have 3 different ones) when you publish your site to your
computer you should have all the files you need. Make a mirror of that site
at your web site. For Example your Root should contain index.htm and the a
directory named index_files. Upload the root file from your computer to the
root files on the ftp site, then upload the index_files to the index_file at
your site.The elgasia.net site was 7.7 meg and uploaded fine.

Again I am new here and hate to intrude.
You can check out the sites at elgasia.info (New and small) and elgasia.net
(Adv and shop site)
Regards
gdorough
Thanks David... I guess I was confused, since I couldn't find another way to
publish from Vista, and thought I was OK since I was first publishing to my
local HDD then transfering with FTP, not publishing to FTP straight from
Publisher. So, how do I make a connection to my website at my ISP
(calplanning.brinkster.net) so I can use HTTP upload? Don't see a way to do
this in the Publish to the Web window from Publisher, nor in the Vista
Network and Sharing Center... maybe there's something I need to enable in
Vista to to open the doors?
I am not going to try to jump into the thread you have going with Spike, but
will make a comment or two.
[quoted text clipped - 36 lines]
 
D

DavidF

Publishing using HTTP protocol has always been a bit of a hassle in my mind,
and now with Vista it requires mapping a network drive...I think. Bottom
line the methods that worked in XP do not work in Vista.

I was going to try to explain how to do this in Vista, in theory, as I don't
run Vista and can't test it out. However, if you are using Brinkster.com to
host your site, then it is probably a moot point. In perusing the knowledge
base at brinkster I ran across the following:

http://kb.brinkster.com/Kb.asp?kb=82627
The methods that FrontPage uses to process form information is not supported
by Brinkster. If you need to process html forms, you need to post the form
to a server side web page, such as an asp, php, or .net page. This is
currently the only way that Brinkster supports the processing of form
information.

So, this also means that you won't be able to use Publisher forms with
FrontPage server extensions to process those forms. I image that is why the
support people were giving you alternative forms.

I am not much of a coder and had a hard time following your thread with
Spike. But it appears that you could modify the form that brinkster gave you
to work on your page. The code you posted was an entire web page, but if you
modify it a bit you can insert it into your Publisher page using the insert
html code fragment. I stripped off a bit of the code that you posted and
without making any other changes I was able to copy and paste using Ctrl + V
into a code fragment box, and it seems to look ok when doing a web page
preview. You would have to make the edits that are described in the code,
and the form will probably only work after you post it, but you might get it
to work ok. Here is your revised code: (copy everything between the dashed
lines_

---------------------------

<br><br>




<%
posted = request.form ("submit")
if posted = "Submit" then

''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'' Customize the following 5 lines with your own information. ''
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
vtoaddress = "(e-mail address removed)" ' Change this to the email address you
will be receiving your notices.
vmailhost = "sendmail.brinkster.com" ' Change this to mail.domain.com (use
your actual Domain name.)
vfromaddress = "(e-mail address removed)" ' Change this to the email address
you will use to send and authenticate with.
vfrompwd = "ca2plan4" ' Change this to the above email addresses password.
vsubject = "Online Contact Form" 'Change this to your own email message
subject.

'''''''''''''''''''''''''''''''''''''''''''
'' DO NOT CHANGE ANYTHING PAST THIS LINE ''
'''''''''''''''''''''''''''''''''''''''''''
vfromname = request.form ("TName")
vbody = request.form ("TBody")
vrplyto = request.form ("TEmail")
vmsgbody = vfromname &"<br>"& vrplyto &"<br>"& vbody

Set objEmail = Server.CreateObject("Persits.MailSender")

objEmail.Username = vfromaddress
objEmail.Password = vfrompwd
objEmail.Host = vmailhost
objEmail.From = vfromaddress
objEmail.FromName = vfromname
objEmail.AddAddress vtoaddress
objEmail.AddReplyTo vrplyto
objEmail.Subject = vsubject
objEmail.Body = vmsgbody
objEmail.IsHTML = True
objEmail.Send

Set objEmail = Nothing

response.write "Thank you, your message has been sent."
end if
%>




<form name="SendEmail01" method="post">
<table border=0>
<tr>
<td>Name:</td>
<td><input type="text" name="TName" size="30"></td>
</tr>
<tr>
<td>Email:</td>
<td><input type="text" name="TEmail" size="30"></td>
</tr>
<tr>
<td>Body:</td>
<td><textarea rows="4" name="TBody" cols="30"></textarea></td>
</tr>
<tr>
<td><input type="submit" name="Submit" value="Submit"></td>
</tr>
</form>

----------------------------

If you can't get this form to work correctly, or if you want to expand it to
include other fields of information such as the telephone number, your ISP
would have to assist you further. Just remember that you can insert the code
snippet into your page using the code fragment feature.

Alternatively here is a simple javascript form that you can insert via a
code fragment, that you could modify for your purposes:

-----------------

<FORM action="mailto:[email protected]" method="post"
enctype="text/plain">
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="4" WIDTH="90%">
<TR>
<TD width="30%"><DIV align="right">
<B>Name:</B>
</DIV>
</TD>
<TD width="70%">
<INPUT type="text" name="name" size="20">
</TD>
</TR>
<TR>
<TD><DIV align="right"><B>Email:</B></DIV>
</TD>
<TD>
<INPUT type="text" name="email" size="20">
</TD>
</TR>
<TR>
<TD><DIV align="right">
<B>Comment:</B>
</DIV>
</TD>
<TD><TEXTAREA name="comment" cols="30" wrap="virtual" rows="4">
</TEXTAREA>
</TD></TR>
<TR>
<TD>&nbsp;</TD>
<TD>
<INPUT type="submit" name="submit" value="Submit">
<INPUT type="reset" name="reset" value="Reset">
</TD></TR>
</TABLE>
</FORM>

-----------------

And finally, if you want the easiest solution, then forget the forms and use
an email link. Add a text box describing what information you want in the
email and then use Don's method of including the text in the subject field:

(e-mail address removed)?=Subject= In regard to the California Planning &
Engineering Corp.

Sorry I can't be of more help.

DavidF
 
D

DavidF

No need to apologize for jumping in. The more help the better, and the more
people that contribute the better.

In this case I suspect the OP will have to use an alternative form just as
you did. It appears that the ISP does not support FPSE driven forms.

DavidF

gdorough said:
Sorry to intrude, but I have 3 sites using publisher 2003 and all are
working
well, although one is new. My Contact Forms work ok, but like you I had
problems. To save me hours of headache I did the following just to make it
simple:
1, The Contact page for elgasia.net is simply the ISP .asp form. All I did
was create an <iframe>and inserted the href to the .asp form or
contact.html.
My contact page then opens the contact form in the iframe and the
customers
submit. It Took a while to make it simple but it works.
2. The elgasia.info site was different as the php and js verify would not
except the <iframe> without errors, so I simply made a contact.php form
page
with the onsite builder and my contact links all direct customers to that
form,which opens in the same window, which they submit and no problems.
All I
had to do then was put links on the onsite php back to the index.htm using
the ISP editor.
3. I use FTP (I have 3 different ones) when you publish your site to your
computer you should have all the files you need. Make a mirror of that
site
at your web site. For Example your Root should contain index.htm and the a
directory named index_files. Upload the root file from your computer to
the
root files on the ftp site, then upload the index_files to the index_file
at
your site.The elgasia.net site was 7.7 meg and uploaded fine.

Again I am new here and hate to intrude.
You can check out the sites at elgasia.info (New and small) and
elgasia.net
(Adv and shop site)
Regards
gdorough
Thanks David... I guess I was confused, since I couldn't find another way
to
publish from Vista, and thought I was OK since I was first publishing to
my
local HDD then transfering with FTP, not publishing to FTP straight from
Publisher. So, how do I make a connection to my website at my ISP
(calplanning.brinkster.net) so I can use HTTP upload? Don't see a way to
do
this in the Publish to the Web window from Publisher, nor in the Vista
Network and Sharing Center... maybe there's something I need to enable in
Vista to to open the doors?
I am not going to try to jump into the thread you have going with Spike,
but
will make a comment or two.
[quoted text clipped - 36 lines]
ISP (FTP10.brinkster.com) with my FTP tool. Can someone please look
at my
website www.calplanning.com and give me some direction?
 
S

Spike

David

Good idea except for one flaw
The password is visible in the source code

I recommend that the password be changed SOON!!!

Spike
 
E

ecanvasser

Thanks Spike, but how do I change the Post?

Spike said:
David

Good idea except for one flaw
The password is visible in the source code

I recommend that the password be changed SOON!!!

Spike
 
S

Spike

The password will only be seen if you use the method that David suggested
Your present mail.asp does not display the source code and the password.
I would change it anyway since it has been seen here
Change your password and modify the mail.asp and repost the mail.asp
I did some more reading about brinkster Their system will NOT accept
publisher forms
Reworking the asp is probably your best bet.

Spike
 
E

ecanvasser

Done... thanks Spike

Spike said:
The password will only be seen if you use the method that David suggested
Your present mail.asp does not display the source code and the password.
I would change it anyway since it has been seen here
Change your password and modify the mail.asp and repost the mail.asp
I did some more reading about brinkster Their system will NOT accept
publisher forms
Reworking the asp is probably your best bet.

Spike
 
S

Spike

The new project page looks good And the password is NOT visible in the
source code
The whole site looks nice easy to read easy to navigate

The email links you have on the staff page can be made to hot link to the
users email program
Highlight the address and select hyperlink
Select Email (lower left)
This saves the user from copping addresses to their email (it will open
their email program with your address and subject line in place)

Good luck

Spike
 
D

DavidF

I suspect that more people will have to start figuring out alternative ways
of getting forms to work in Pub webs. More and more ISPs are dropping
support for FPSE, and with Vista it is hard to upload using HTTP uploading
protocol.

DavidF
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top