chrometweaks.org

Anyone have Godaddy promo codes for CO domains?
Quick question: Anyone have Godaddy promo codes for CO domains? Thanks in advance for any answer. Second question.. I need help setting up a form. I want to recieve the info in my email. Here is the code that my provider sent me, I filled in the parts with my info.

<FORM method="post" action="http://www.rx-mencomic.com/cgi-bin/FormMail.pl">.

<input type="hidden" name="recipient" value=") </p>.

</body>.

</html>..

Comments (16)

Yea, there are plenty of Godaddy vouchers out there. Good opportunity to save money on Godaddy now. I suggest you to sign-up for their weekly newsletter so you can receive their newest promo deals. They usually email once a month or so..

Comment #1

Big,.

You are getting there, And I hear you about learning from the web as you go.... I think that's the way a lot of us have done it... I know I have. About 9 years ago I was facinated when I saw that a friend had his own web page. He told me he made it on the new (was new at that time) AOL page maker. I have always had a "Geeky" side, so I jumped right in to make me one too.

I wanted to make it do exactly what I wanted. The bookstore didn't have any books on HTML yet so I would just view an Internet page's source code and from trial an error figure out what tags did what. Talk about "after-effects"... so I totally understand where you are coming from and admire your guts to do it..

Now, down to business...... start in the place on your page where you want the form fields to appear. At that point begin your opening form tag and the hidden tags that do the behind the scenes work..

<FORM method="post" action="http://www.rx-mencomic.com/cgi-bin/FormMail.pl">.

<input type="hidden" name="recipient" value="/sentpage.html">.

1st one (method=post) calls up the PERL file that controls this form..

Name=recipient, says where the results of the form will be sent (your email), I presume..

Name=subject, tells what will be in the subject line of the email that comes to you..

Name=redirect, says what page the viewers will be taken to after they submit the form. YOu will need to make that page and name it just what you indicated in your tag (sentpage.html).... I usually call mine "thankyou.html".

Next you start building the form's fields..... the little boxes where visitors will input the data. On Dreamweaver you can do: insert>form>text field. And your first one might be:.

<input type="text" name="your_name" size="33" maxlength="35">.

That will build a field for the visitor to input his name..

And so on and on..... just keep adding the fields you need. You can have other "types" of fields.... like "text areas"... the bigger boxes where they can type a whole message..

Then when you have all your fields in place... you need to add the submit button...

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

Lastly you close the form with:.

</form>.

But keep in mind that, all this depends on the (CGI) PERL file that runs all this, being in your cgi-bin directory.... reason that it's in a special directory on your server is because that directory is given permissions to not only be read by a viewer but to be written to as well (something your other directories are not allowed to do). So lets take a look at the file , "FormMail.pl". Is it something that your server provided and instructs you to make use of and do you know it's actually there in the directory?.

You are almost there..... don't give up now. But then I don't think you sound like the kind of guy who gives up easily. You got this far... right!..

Comment #2

Hey Aero, Ladybug. Thanks again..

Ladybug, with your explanation being so clear, I think I understand my problem here. I see that I have a close </form> tag way before the submit button. I need to make a 'thankyou' page, which I am going to change from 'sentpage' to 'thankyou' page!.

About the formmail.pl. I've emailed my provider for a little more info about it, i.e. the code that Aero was asking me for. The first time I emailed them about form help, they replied with this code:.

To get the FormMail script working, you should use the following piece of code (which is only an example - you should therefore make corrections in the different fields):.

<FORM method="post" action="http://www.your-domain.dk/cgi-bin/FormMail.pl">.

<input type="hidden" name="recipient" value="your@emailaddress.dk">.

<input type="hidden" name="subject" value="You can write in here the subject text">.

<input type="hidden" name="redirect" value="http://www.domain.dk/newpage.html">.

</FORM>.

So I just placed my info where I thought it should go. Im at work now, kinda wanna fake an illness to get home and try this out but ill have to wait until five. Guys again thanks, and I will let you know how it goes and I wont give up ladybug!..

Comment #3

Hey guys. Regarding the form mail, Im getting this message now:.

Not Found.

The requested URL /cgi-bin/FormMail.pl><input type= was not found on this server. Do I have to set something up with my provider. Everything else seems to be working fine. Heres the code. Thanks guys..

<form method="post" action="http://www.rx-mencomic.com/cgi-bin/FormMail.pl><input type="hidden" name="recipient" value="/sentpage.html">.

</FORM>..

Comment #4

You're missing a quote at the end of the first action:..

Comment #5

Iklop, thanks. It works now. You know I know very little about HTMl code, cgi, ssi, css or tps reports, but the people involved in this forum are so friggin' helpful! Thanks ladybug, aero, Iklop. Im gonna go used what I learned from you guys and apply it to my site, but I know I will need more help in the future, so I will def come back here...

Comment #6

Big,.

Always glad to be able to help out. The only reason I hangout here is because I get into trouble so often that I need help too and I can always find it here...

Comment #7

Hey guys, Im back, head between my legs. Was so excited I got this form to work, forgot to test wether it actually sent the email to the appropriate email addresses. It doesnt. Know why? Cause I did it.

The form is a 'send a link to my home page to your friend' form. So I want it to send an email to the friend, to the person sending the email, and to my email with their info, (their name, email and whatnot)..

In just trying to get this form to send to my email, I posted my email address all over the code. So I think that is the problem. Somewhere, it instructs it to send to my email, not the friends. But I dont know where. Below is the start of the form:.

Form method="post" action="http://www.rx-mencomic.com/cgi-bin/FormMail.pl"><input type="hidden" name="recipient" value="/sentpage.html">.

</FORM>.

Cheers mates..

Comment #8

Where is your submit button? Why do you have the form twice on the page?..

Comment #9

Big,.

Unless the CGI PERL file named "formMail.pl was written to recomend a page to a freind and send mail to the friend AND to you, then it won't do both of those. Since it's just named "formmail"... I am wondering if it does both functions. Can you direct me to the place where you got the file or where you found the instructions for it, or a copy of the file itself, and maybe we can take a look-see and figure out what it was written to do. If it's just a plain sendmail form file then you willl need a file that "recomends" as well..

Also, looking at the code you posted above......

You need a bracket "<" at the very beginning of the form tag.

And.

You need a closing for your table, </table>.

And.

You do not need to repeat the form tags at the bottom,,, just use the </form> at the bottom..

I think you have the email address correct to make the form send the results to you. It's the line that says name=recipient.

<input type="hidden" name="recipient" value="">.

That line is saying:.

There is no type of field to type into ( "hidden"),.

That it refers to "recipient" and whatever is in the CGI PERL file that applies to recipient,.

And that the value of recipient will be whatever email address value equals in this line...

Comment #10

OOOPs.... Aero beat me to it while I was typing all that... and he's right, you are also missing your submit button (I didn't catch that one)> silly me..

Comment #11

Ladybuy Aero, you guys are alright, thanks again..

I dont know why I have the form twice. I emailed my provider for instructions on how to send form mail. they gave me a link to a page, and the page said this:.

How do I set up FormMail?.

To get the FormMail script working, you should use the following piece of code (which is only an example - you should therefore make corrections in the different fields):.

<FORM method="post" action="http://www.your-domain.dk/cgi-bin/FormMail.pl">.

<input type="hidden" name="recipient" value="your@emailaddress.dk">.

<input type="hidden" name="subject" value="You can write in here the subject text">.

<input type="hidden" name="redirect" value="http://www.domain.dk/newpage.html">.

</FORM>.

I think I have a submit button in the script but I'm not sure if it is correct. when I push it on the page, my thank you page comes up so Im assuming it's okay.

Td bgcolor="#28313B"> <input name="submit" type="image" src="/images/submitbutton.gif" vspace="3"></td>.

I will email my provider to see if the form mail can recommend, cause I dont see a file name formmial.pl anywhere in my GoDaddy site folder even when I sign on through the ftp.

So if the formmail.pl file does not recommend, does that mean that Ill will not be able to have an actual send to a friend function unless I do it manually using the info I recieve in my inbox. What kind of friend sends his friend a link to a pill cartoon anyway? haha. Elvis the vicodin will live on once I get this html stuff out of the way so I can get back to animations. Thanks again everyone. this place is great...

Comment #12

Okay lets try a simple 'correct' page..

I have a feeling that might error out due to the toemail field. Try that and tell us if it works, I would do it but can't because I don't have permission to access your perl file...

Comment #13

Aero,.

Thanks for taking the time to do that. I dont know the access for the perl file, so I will try it when I get outta work. Also a quick question I want the sumit button to be the picture of 'Old Man Morphine' that is included. should I just add that into your code or is already there? Thanks again man, and I will let you know how it goes tonight, after the simpsons at 7 NY time...

Comment #14

Aero I put that code you gave me yesterday in. it sent the information to my email address fine, but I was still unable to send to the friend or the person referring the page. Also I was recieving four of each email. I tested it twice, but only submitted the info once each time. But when I check my inbox I had 8 emails. Is that a sign that this is possible I just have information in the wrong space? thanks..

Comment #15

It could be a sign that the original form you had was working but for w/e reason took time to get sent then again you might have information in the wrong place. That is why I originally asked to see the code for perl file but you never showed us. What was the GoDaddy site you got the perl file from, was it from your host? Did you have to change the perl file in any way?..

Comment #16

Aero,.

Yes it was from my host. I posted their response when I asked them for help regarding formmail. I asked the for the code for the formmail.pl file but I never got it. I dont even know what the perl file is and I think I stated earlier that I looked in my GoDaddy site folder and didnt even see cgi-bin folder that it references..

And my original form does work, but it doesnt send the page to the friend. I, Ric get the info in my email but nobody else does. When I used the code you gave me, I recieved 4 of the same emails. Two were recieved at 9:53, two at 9:54, all the same exact info. In the previous tests I used friends email addresses. This time I used my own and that was the info I recieved in the form mail.

I email my provider asking whether the script for the perl file allows me to do what I want to do, so once I get their answer Ill post again. thanks for your help again, and have a great 4th...

Comment #17


This question was taken from a support group/message board and re-posted here so others can learn from it.