Jump to content

postroske

New Members
  • Posts

    5
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

postroske's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Gevensen, Thanks for your reply. Here's what I don't understand. There are so many crappy websites out there with contact us forms. Are these all made in PHP or is there another way? I have to imagine there is a relatively easy solution out there for people who don't have a working knowledge of PHP. Again, thanks for your direction, Peter
  2. I'm trying to figure out how to add PHP code to my xhtml form so that it is a working form embedded in the contact us page of a website that is still on my pc only. The end goal is to place the PHP into the code below, create a .php file that compliments it (if necessary?) so that when the contact form is submitted, it is pushed through to my gmail account. I'm not sure if the best way to do this is through a CGI or if there is an easier way since the site isn't published yet? Ideally, Id like for someone to add the PHP code my xhtml code below and explain any other details that will make my form work. I added the <form> tag below but do not know where to go from here. I do not have a file currently called formscript.php but assume I'll need one like it if this is to work. From what I've read, I've got a LONG way to go on how this whole process works. I've read through forums yesterday but everything is written for someone with an existing knowledge of PHP or for table based forms. I would appreciate any and all help. Thanks, Peter xHTML: <form action="formscript.php" method="post"> <div class="contact_form"> <div class="form_row"> <label class="contact">Name:</label> <input type="text" name="name" class="contact_input" /> </div> <div class="form_row"> <label class="contact">Email:</label> <input type="text" name="email" class="contact_input" /> </div> <div class="form_row"> <label class="contact">Message:</label> <textarea class="contact_textarea" ></textarea> </div> <div class="form_row"> <a href="#" class="read_more">send</a> </div> </div> </form> CSS: .contact_form{ width:355px; float:left; padding:0px 0 0 5px; } .form_row{ width:335px; clear:both; padding:10px 0 10px 0; _padding:5px 0 5px 0; color:#a53d17; } label.contact{ width:70px; float:left; font-size:12px; text-align:right; padding:4px 5px 0 0; color:#fff; } input.contact_input{ width:253px; height:18px; background-color:#857c7c; color:#FFFFFF; border:1px #857c7c solid; float:left; } textarea.contact_textarea{ width:253px; height:50px; font-family:Arial, Helvetica, sans-serif; font-size:12px; color:#FFFFFF; background-color:#857c7c; border:1px #857c7c solid; float:left; } .contact_info{ width:380px; float:left; padding:0 0 0 20px; color:#FFFFFF; } p.adress{ float:left; padding:10px 0 0 15px; line-height:13px; }
  3. I'm trying to figure out how to add PHP code to my xhtml form so that it is a working form embedded in the contact us page of a website that is still on my pc only. The end goal is to place the PHP into the code below, create a .php file that compliments it (if necessary?) so that when the contact form is submitted, it is pushed through to my gmail account. I'm not sure if the best way to do this is through a CGI or if there is an easier way since the site isn't published yet? Ideally, Id like for someone to add the PHP code my xhtml code below and explain any other details that will make my form work. I added the <form> tag below but do not know where to go from here. I do not have a file currently called formscript.php but assume I'll need one like it if this is to work. From what I've read, I've got a LONG way to go on how this whole process works. I've read through forums yesterday but everything is written for someone with an existing knowledge of PHP or for table based forms. I would appreciate any and all help. Thanks, Peter xHTML: <form action="formscript.php" method="post"> <div class="contact_form"> <div class="form_row"> <label class="contact">Name:</label> <input type="text" name="name" class="contact_input" /> </div> <div class="form_row"> <label class="contact">Email:</label> <input type="text" name="email" class="contact_input" /> </div> <div class="form_row"> <label class="contact">Message:</label> <textarea class="contact_textarea" ></textarea> </div> <div class="form_row"> <a href="#" class="read_more">send</a> </div> </div> </form> CSS: .contact_form{ width:355px; float:left; padding:0px 0 0 5px; } .form_row{ width:335px; clear:both; padding:10px 0 10px 0; _padding:5px 0 5px 0; color:#a53d17; } label.contact{ width:70px; float:left; font-size:12px; text-align:right; padding:4px 5px 0 0; color:#fff; } input.contact_input{ width:253px; height:18px; background-color:#857c7c; color:#FFFFFF; border:1px #857c7c solid; float:left; } textarea.contact_textarea{ width:253px; height:50px; font-family:Arial, Helvetica, sans-serif; font-size:12px; color:#FFFFFF; background-color:#857c7c; border:1px #857c7c solid; float:left; } .contact_info{ width:380px; float:left; padding:0 0 0 20px; color:#FFFFFF; } p.adress{ float:left; padding:10px 0 0 15px; line-height:13px; }
  4. My question is - How Do I code a css tableless design with PHP. There is no form code because I don't know what a form code is. Maybe you could help me get a little closer to making this happen. Sound like i have a ways to go as far as basic understanding is concerned. thanks, Peter
  5. Hello Everyone, I apologize ahead of time as I am sure this is a reoccurring question. The forums explanation that I found addressed table-based designs. I've never used PHP in my life and to be honest have just gotten the hang of xhtml/ccs. My end goal is to be able to have users submit the form and receive it in my gmail account. The files are not on a server just yet. Thanks for your patience with a newbie, Peter Html Code: <div class="contact_form"> <div class="form_row"> <label class="contact">Name:</label> <input type="text" class="contact_input" /> </div> <div class="form_row"> <label class="contact">Email:</label> <input type="text" class="contact_input" /> </div> <div class="form_row"> <label class="contact">Message:</label> <textarea class="contact_textarea" ></textarea> </div> <div class="form_row"> <a href="#" class="read_more">send</a> </div> </div> CSS: .contact_form{ width:355px; float:left; padding:0px 0 0 5px; } .form_row{ width:335px; clear:both; padding:10px 0 10px 0; _padding:5px 0 5px 0; color:#a53d17; } label.contact{ width:70px; float:left; font-size:12px; text-align:right; padding:4px 5px 0 0; color:#fff; } input.contact_input{ width:253px; height:18px; background-color:#857c7c; color:#FFFFFF; border:1px #857c7c solid; float:left; } textarea.contact_textarea{ width:253px; height:50px; font-family:Arial, Helvetica, sans-serif; font-size:12px; color:#FFFFFF; background-color:#857c7c; border:1px #857c7c solid; float:left; } .contact_info{ width:380px; float:left; padding:0 0 0 20px; color:#FFFFFF; } p.adress{ float:left; padding:10px 0 0 15px; line-height:13px; }
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.