[Pro] FormMail

Hi all,

I have successfully created a form for people to send comments etc. I use a FormMain script in the Cgi-bin folder. This sends an email to me with the submitted details from the form. The script then re-directs the user to a page on my site which thanks them for their comment.

When this page appears, all the text I placed in the HTML box shows up correctly but none of the images display. You just see the box with the name of the file.

Does anyone have any ideas as to why this may be happening?

Thanks


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

The CGI is grabbing the file you created, slurping it into itself, and
presenting it to your browser as if it was actually located at http://yoursite.com/cgi-bin/yourpage.html
when your page really lives at http://yoursite.com/yourpage.html

Freeway always writes relative URLs for everything – images too –
and so all of the image requests are looking in the wrong place. The
easiest way to fix this is to open the Page HTML Markup dialog in your
thanks page, move to the After HEAD section, and add this line of code
(make sure that you change it to match your real URL):

<base href="http://yoursite.com/" />

Publish, test, and see if that fixes it. It should.

Walter

On Feb 18, 2010, at 4:35 PM, neil wrote:

Hi all,

I have successfully created a form for people to send comments etc.
I use a FormMain script in the Cgi-bin folder. This sends an email
to me with the submitted details from the form. The script then re-
directs the user to a page on my site which thanks them for their
comment.

When this page appears, all the text I placed in the HTML box shows
up correctly but none of the images display. You just see the box
with the name of the file.

Does anyone have any ideas as to why this may be happening?

Thanks


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Walter,

Thanks very much.

I could see that it was trying to access info from a different folder because I CTRL clicked the graphic box to open in new window. I didn’t understand why.

Your explanation was excellent and the code worked a treat.

Marvellous.

Thanks again,
Neil


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hello,

I have been having trouble with bounced messages to my website email address. My IP tech’s insist that I rewrite the php feedback form even though among the bounces are test emails sent from apple mail client and on line email accounts (yahoo, @me.com, gmail) independent of the form on the website.

They also said that emails sent specifically from the php form page are causing multiple bounces due to the servers being requested for files that are not there. I asked if they support php and got the answer that I should make sure the cgi_bin works before ‘adding code’. At the same IP on another server I have the PHP form working fine.

I have some knowledge having set up a cgi form before, some time ago.

My concern is placing the script in the correct places so that it 1) works and 2) I can keep the form table I spent hours learning/building. The script is very plain.

I have made one attempt and think I am close, using the extended on the page, uploaded here:

http://www.class-e-ads.com/contact-solutions-email.html

…but it doesn’t work. At the server, I can see the root of my server space and there isn’t a cgi_bin file - Do I need them to install that?

The script follows,

Thanks in advance for your time,

Frank

Your Name:

Your Email Address:

Subject:

Message:

  1. You will need to change a couple of things and you may want to change others. So, let’s break down the following information line by line.

This tells the form where to submit to.

To find that correct location, login to the cPanel for your hosting package, commonly found at http://www.yourdomainname.com/cpanel (yourdomainname.com should be replaced with your actual domain name)

Click on the CGI Center module and then click on the FormMail Clone module.

Once inside there you will see a line that says:

The Actual Script is here:

The URL that follows is what should replace yourdomain.com is available for purchase - Sedo.com in the above tag.

This is the only required field. It tells the mail script where to send mail submitted using this form.

This field will be hidden on your form, but it tells the server which page to serve up upon successful submission of the form.

  1. Your Name:

This is the field where your guest will type in their name.

  1. Your Email Address:

This is the field where your guest will type in their email address.

  1. Subject:

This is the field where your guest will type in a subject line for the email they are sending you. You can also specify the subject line of the email, instead of leaving it up to your guests. The way to do that would be to replace the Subject: line with Of course, you’d want to replace “My Subject Line” with your desired subject.

  1. Message:

The is the field where your guest will type their message to you.

This line creates that nifty little submit button at the end of the form.

This closes out the form.

  1. Upload the page that contains your form and your response.html page into your public_html folder.

  2. That’s it. You should be able to point your browser to the page that contains your email form and send yourself an email.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options