Jump to content

  • Free consultations and support
  • Live chatClick Here for Live Chat
  • Call ico 1888-906-1888
    Phone support: Open

    Ready for your call :)

    Our business hours:

    Mon — Fri, 2am — 8pm (EST)

    US & EU support teams

    Phone support: Closed

    We are back in: 1h 20m

    Our business hours:

    Mon — Fri, 2am — 8pm (EST)

    US & EU support teams


HTML form


  • Please log in to reply
&nsbp;

#1 jlinds72

jlinds72

    Administrator/ Designer

  • Designer
  • 1461 posts

Posted 30 April 2004 - 11:42 AM

I've created a simple contact form for a website, that when submitted is sent to an email address. The problem that I have is that it takes sometimes up to 2 1/2 hours for it to be received in my email. Since I do get the results, just delayed I'm assuming that the coding is right, but does anyone have any idea why there would be such a delay? I was assuming at first that it was a problem with my server, but the form that I created for another website on a different server does the same thing.

Thanks!
~Jenn
Jenn Lindsey - Freelance Graphic Designer
"To live a creative life, we must lose our fear of being wrong" - Joseph Chilton Pearce

My website: jennlindsey.com

Please review the new rules for DesignContest.net here

#2 ruxique

ruxique

    Elite Designer

  • Designer
  • 110 posts

Posted 30 April 2004 - 11:56 AM

What do you use for sending the mail? CGI or PHP? Can you explain, maybe I can help you somehow.
Ruxique

MyWork

#3 jlinds72

jlinds72

    Administrator/ Designer

  • Designer
  • 1461 posts

Posted 30 April 2004 - 01:27 PM

What do you use for sending the mail? CGI or PHP? Can you explain, maybe I can help you somehow.


I used CGI - I haven't learned PHP yet. I created the form in Dreamweaver. It's for my personal website found here: Graphics Cache

I'm not sure what else I can tell you about it, but you can view the source code from the link i've provided. Thanks!
Jenn Lindsey - Freelance Graphic Designer
"To live a creative life, we must lose our fear of being wrong" - Joseph Chilton Pearce

My website: jennlindsey.com

Please review the new rules for DesignContest.net here

#4 Shyflower

Shyflower

    Apprentice Designer

  • Designer
  • 168 posts

Posted 30 April 2004 - 02:19 PM

I used CGI - I haven't learned PHP yet. I created the form in Dreamweaver. It's for my personal website found here: Graphics Cache

I'm not sure what else I can tell you about it, but you can view the source code from the link i've provided. Thanks!

Hi Jenn,

I'm no expert on forms, but one thing I wondered when looking at your source code is why you have all the style information embedded into your code? Right now, it makes your code incredibly difficult to read.

I never found (although it may be there somewhere) any information to send the form to your cgi bin, which is where you would want to send a cgi form.

I'm no "expert" at xhtml or css either, but I think you would be better off either putting it into your head information or into the style sheet link you already have.

Just my two cents.

Linda

#5 ruxique

ruxique

    Elite Designer

  • Designer
  • 110 posts

Posted 30 April 2004 - 03:11 PM

Hi again,

I looked into your code, and, from what I saw, you don't use cgi. You just use the mailto function which is HTML, that's why your form moves slowly.
If you would use cgi, your action line had to be the path to your cgi script which sends the form to sendmail.cgi file from the server.
So the reason for working slow is the action you used.
If you are sure that your server has cgi, you can find some documentation about cgi forms and the way to create them here:
http://www.ruxique.g...msitemail_a.zip
You'll find everything you need for building a cgi form.

Good luck,
Rux
Ruxique

MyWork

#6 jlinds72

jlinds72

    Administrator/ Designer

  • Designer
  • 1461 posts

Posted 30 April 2004 - 03:36 PM

Hi again,

I looked into your code, and, from what I saw, you don't use cgi. You just use the mailto function which is HTML, that's why your form moves slowly.
If you would use cgi, your action line had to be the path to your cgi script which sends the form to sendmail.cgi file from the server.
So the reason for working slow is the action you used.
If you are sure that your server has cgi, you can find some documentation about cgi forms and the way to create them here:
http://www.ruxique.g...msitemail_a.zip
You'll find everything you need for building a cgi form.

Good luck,
Rux


Thanks Rux & Shyflower!

As you can see, I don't completely know what i'm doing :) I'll check out the cgi bin documentation, as I know that I have a cgi bin on my server.

As far as the code, I know that I need to clean it up. I'm still learning how to use CSS as well, and I know that would clean up the code alot, just haven't fully implemented it yet.

Thanks again :)
~Jenn
Jenn Lindsey - Freelance Graphic Designer
"To live a creative life, we must lose our fear of being wrong" - Joseph Chilton Pearce

My website: jennlindsey.com

Please review the new rules for DesignContest.net here

#7 ruxique

ruxique

    Elite Designer

  • Designer
  • 110 posts

Posted 30 April 2004 - 03:41 PM

You're welcome.

Let me know if you need more help, after you read the documentation. :)

Take care,
Rux
Ruxique

MyWork

#8 simplistik

simplistik

    Apprentice Designer

  • Designer
  • 216 posts

Posted 30 April 2004 - 03:59 PM

Yea, ruxique is right. You're not using anything CGI on your site at all. Although I think you said you don't know php, you can find PHP mailing scripts at http://www.hotscripts.com or other sites like that. You can easily modify them to incorporate any functions you want and when you look at the code of a PHP script it'll be easy for you to understand I'm sure, so you can learn it.

On a side note. As I was being nosey in your coding of your site. I was just wondering how come you don't have the body info in your CSS too? That way it would all carry over to your diff, pages by only linking to that CSS.

<body bgcolor="#FFFFFF" text="333333" link="#33CC00" vlink="#333333" alink="#99ff66">



body {
background:#ffffff;
color:#333333;
font-size:10px;
margin-bottom:0px;
margin-left:0px;
margin-right:0px;
margin-top:0px;
font-family: Arial, Helvetica, sans-serif;
}
A:link {color: #33CC00; text-decoration: none;}
A:visited {color: #333333; text-decoration: none;}
A:hover {color: #99ff66; text-decoration: underline;}


Now you can get rid off all that stuff in the <body> tag and just link to the CSS and all will be nice and uniform.

Anyway, that's off topic. As long as you switch from the mailto to either PHP or CGI everything will work fine.

www.beyondthepixel.com - a multimedia affair
··························································
Simplicity is the ultimate sophistication.
-Leonardo da Vinci




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users