« May 2005 »
S M T W T F S
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31

You are not logged in. Log in
Open Community
Post to this Blog

Helpful Links
Angelfire Home
Register Your Domain
Angelfire's Twitter
Angelfire's Facebook

Angelfire Club Blog
Need assistance and ideas from fellow Angelfire members to help build and manage your website? You've come to the right place!
To join this Community Blog, you must be an Angelfire member. Just click the "Join this Community" link, and start posting immediately.

Hint: When posting, select a topic that most relates to your question. (News, FrontPage, HTML Questions, etc...) This will help to keep the blog organized for everyone.

View Latest Entries

Thursday, 19 May 2005
cgi-bin/form
Please Help.I am having problems getting FormMail to work in my cgi-bin. I am getting "Bad Referrer-Access Denied" when I try to view the formmail.cgi in the cgi-bin. Angelfire says to add their www. to the referers array. so i went on the formmail.cgi and added angelfires www.angelfire.lycos.com to my @ referers array on the form mail and am still getting bad referer.


Posted by hi5/kidstop at 2:13 PM EDT | Post Comment | View Comments (15) | Permalink | Share This Post

Thursday, 19 May 2005 - 5:41 PM EDT

Name: dalleh

try
http://www.angelfire.com

Thursday, 19 May 2005 - 6:08 PM EDT

Name: hi5/kidstop

I actually need some help with the Form itself. I need assistance with putting the information on the FormMail. I need help with how to put in for recipient, referrers, and mailprog.

Thursday, 19 May 2005 - 7:15 PM EDT

Name: md/jdfaq
Home Page: https://www.angelfire.lycos.com/build/scriptlib/form.tmp

give this form a try

https://www.angelfire.lycos.com/build/scriptlib/form.tmpl

Thursday, 19 May 2005 - 10:59 PM EDT

Name: hi5/kidstop

i have been going over the FormMail in my program and the READ ME program these are the 3 areas i am having problems with: FormMail has $mailprog='/usr/lib/sendmail -i -t'
this is what it looks like. where do i put my information in this? then angelfire tells me to put www.angelfire etc in my @referers...well there @referers all over the place on this form. how do i know where to put my info? the last one is @recipients=&fill_recipients(@referers) where do i type my information in that one? thank you

Friday, 20 May 2005 - 10:19 AM EDT

Name: cw

I'm not going to be any help at all editting your cgi file. But one thing I noticed is that the page that redirects to paypal seems to be missing from your account.

<input type="hidden" name="redirect" value="https://www.angelfire.com/hi5/kidstop/santaletter/HOWTOPAY.html">

The page https://www.angelfire.com/hi5/kidstop/santaletter/HOWTOPAY.html returns a 404 error.

And in hopes someone that is comfortable editting cgi will know what this means here's the error that's being thrown when I submit your form

https://www.angelfire.com/cgi-bin/adm/cgi_error?error=Your script produced this error%3A %3Cbr%3Esyntax error at FormMail.cgi line 1%2C near %22rtf1%5C%22%3Cbr%3Esyntax error at FormMail.cgi line 1%2C near %22%7D%7D%22

From what I make of that there are 2 errors in line 1 of FormMail.cgi

Friday, 20 May 2005 - 12:39 PM EDT

Name: hi5/kidstop

thanks for taking the time to look at it. i hope someone will be able to help me.

Saturday, 21 May 2005 - 5:09 AM EDT

Name: mamagoo

I would just use the angelfire script libray form handler, you do not have a 'form mail cgi' in you cgi bin as far as I can tell, anyways.....LOL

I did your form using the angelfire cgi 'script library form handler' and and it's working using the "Form Action" below....

go here and view the test form I did,
https://www.angelfire.com/mi2/magoosplace/santaform.html

I copied yours and I set it ot go to your hi5kidstop@comcast.net mail so I could test it.
did you get the mailer I sent?

view the source code of my page and copy paste to a Test Page of your Own, 'and change the things that need to be changed.....'
I had to use my homepage addy in the end display for it to work from my directory

is this your correct e-mail name because this it the way it's written in your form?
webmaster@hi5kidstop@comcast.net

should it not be
hi5kidstop@comcast.net

well anyway why don't you think about doing it this way, the only thing I didn't check out was your paypal, and that I nothing about so I 'm not sure that will work....I left the box unchecked when I filled the form to send to myself so I don't know about that part...ok?

and this I changed also, infact you don't have a HOWTOPAY page yet, to go to.....LOL
input type="hidden" name="redirect" value="https://www.angelfire.com/hi5/kidstop/santaletter/HOWTOPAY.html"

I changed it to end_display in the code below.... and I used your homepage addy to display after the form is sent, in this code, but you will have to determine the page for yourself...ok?


<FORM ACTION="/cgi-bin/script_library/form_handler_mail" METHOD=POST>
<INPUT TYPE="hidden" NAME="email_to" VALUE="hi5kidstop@comcast.net">
<INPUT TYPE="hidden" NAME="end_display" VALUE=""https://www.angelfire.com/hi5/kidstop">
<INPUT TYPE="hidden" name="subject" value="Santa Letter Submission">

Saturday, 21 May 2005 - 12:04 PM EDT

Name: hi5/kidstop

thank you i will try it:)

Saturday, 21 May 2005 - 12:08 PM EDT

Name: hi5/kidstop

yes i got your email. yes thats how it is to work. i will try what you did. thank you so much for your time!!!

Monday, 23 May 2005 - 3:39 PM EDT

Name: hi5/kidstop

cw where do i put this at? i have made a HOWTOPAY.HTML page. but where does this code you wrote go? thanks so much.

Tuesday, 24 May 2005 - 9:11 AM EDT

Name: cw

I can't take credit where it isn't due :). Mamagoo wrote your code but it goes in this line like this...

<INPUT TYPE="hidden" NAME="end_display" VALUE="https://www.angelfire.com/hi5/kidstop/HOWTOPAY.HTML">

*assuming* HOWTOPAY.HTML is in your main directory (it's not) so we need to figure out where you uploaded the file so the file path to it can be written correctly. Is it uploaded to a subdirectory and if so what is the subdirectory name? Also, is the HOWTOPAY.HTML file you uploaded named in all uppercase? Lycos servers are case sensitive so the file as named will need to match the name written in the file path exactly- right down to letter case. (IOW HOWTOPAY.HTML is not the same file as say HOWTOPAY.html)

ps- there is a small error in mamagoo's input field code for the end display page- One two many quotes.....

value=""http://etc" should be

value="http://etc"

hope that helps

Tuesday, 24 May 2005 - 9:29 AM EDT

Name: cw

Lucky guess! found your page and the code would look like this......

<INPUT TYPE="hidden" NAME="end_display" VALUE="https://www.angelfire.com/hi5/kidstop/HOWTOPAY.html">

What will happen is that a visitor will select the letter options and submit them to you. On submit they'll be automatically taken to the HOWTOPAY page.

OR.... you could bypass HOWTOPAY.html and take purchasers directly to the paypal page (and eliminate a click) like this.....

<INPUT TYPE="hidden" NAME="end_display" VALUE="https://www.paypal.com/cgi-bin/webscr">

JMO but think you should add something to the howtopay or paypal page on the order of.... 'Thank you for your order. Your letter will be sent within so many days after receiving your payment'. Also, it should be stated on your website what the service will cost before anyone goes through the motions of ordering. I don't remember seeing a price until I reached your paypal account.

hope that helps

Tuesday, 24 May 2005 - 4:24 PM EDT

Name: hi5/kidstop

hi cw i think its gone from order page? ""? is that where i am to be looking? i cant find it on my page? i have a question. it looks like everything is a go/working okay and i will add your suggestions.. but about the endpage thing that is on my form when i get it as an email when people submit so soemthign is wrong there.it will have the "howtopay "page on one of the lines. so when someone submits their form i get the email and it takes them to the pay pal page. is that good or are you saying i should do it differently thanks for your help and ideas!!!

Tuesday, 24 May 2005 - 4:32 PM EDT

Name: hi5/kidstop

nevermind i see what you are talking about i found the extra quotes "on here" on the blog.thanks for finding them.

Tuesday, 24 May 2005 - 5:57 PM EDT

Name: cw

".. but about the endpage thing that is on my form when i get it as an email when people submit so soemthign is wrong there. it will have the "howtopay "page on one of the lines.

Maybe I don't understand what you mean. I don't know what the original cgi form handler that came with your set up was written to do.

The form set up by mamagoo uses the Angelfire form handler. The AF form handler end_display is written to redirect to another page after the form is submitted. Many people use this as a "thank you for submitting the form' type of thing, but it can be set up however you want or need. End_display looks similar to the 'redirect' field that I saw in your original form.

On submission of the form the submitter is taken or redirected to another page. In your set up, the redirect goes to HOWTOPAY.html.... but that only serves as a link to your paypal account. HOWTOPAY.html just seems like a hoop that needs to be jumped through before someone can actually pay for their order.

From HOWTOPAY.html the user clicks the link to paypal and is brought to your paypal account page. (I don't think the howtopay page will show up in your email on submission of your form if that's what you're saying. Or am I misunderstanding you?)

"....so when someone submits their form i get the email and it takes them to the pay pal page....."

Yes- that's what both your original FormMail.cgi and the AF form handler should do. You get an email that is independent of a second process- paying for your product. You could get the order form submission before the letter is actually paid for- in other words, someone can order a letter, you'll get the email... but they may not have paid for it yet since paying through paypal is independent of the order form submission. (And curious about how you know if someone has actually paid for the letter they ordered?)

"....is that good or are you saying i should do it differently...."

Whatever works best for you. Just saying if you omit the howtopay.html page and send submitter's directly to your paypal acount page (on clicking 'submit'), you remove an intermediate page (howtopay.html) that's serves no other purpose than to act as a link to your paypal account page. It's the paypal account page your buyer's really need to visit. My intention in suggesting to go directly to the paypal account page on submission was to speed up the check out process and make it easier for buyer's to pay. The less clicks it takes visitor's to get where they need to go the better.

One thing you can also do is change the word 'submit' on your order form button to 'checkout', then have buyers taken directly to the paypal page. No real reason for changing the submit button text other than it might make the steps in the ordering process more clear to buyers.

View Latest Entries