Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 9 of 9
  1. #1
    New Coder
    Join Date
    Dec 2006
    Location
    College Station
    Posts
    26
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Contact form formatting issues

    Hey all,

    I'm not really sure where to put this... the file in question is a Perl script, but my questions have to do with some CSS formatting in that script, so I'll try here.

    I downladed the Perl contact form from here, and I am trying to format it to fit my site. I have a text declaration:

    Code:
    text { font-family: Verdana, sans-serif; font-size: 9pt; font-weight: 500; color: #303030}
    which works in Firefox, but Internet Explorer doesn't "see" it. Also, the width of the boxes is controlled by

    Code:
    .cf_textentry { min-width:300px; width:99%; max-width:600px; width:expression(document.body.clientWidth>600?"600px":"auto");}
    but, again, IE doesn't see that. How can I fix this?

    http://derbydigitalphoto.com/test/contact.php
    http://derbydigitalphoto.com/test/contact.pl

    (yes, I know the site isn't validated. I'm working on that.)

    --Daniel

  • #2
    New Coder
    Join Date
    Dec 2006
    Location
    College Station
    Posts
    26
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I'm also trying to get rid of the border around the contact form... in case anyone can figure out where that is being declared. I've looked for "border" but it's not in the document.

  • #3
    Senior Coder
    Join Date
    Jan 2005
    Location
    Memphis, TN
    Posts
    1,801
    Thanks
    8
    Thanked 131 Times in 129 Posts
    Code:
    <iframe src="contact.pl" width="450" height="500" border="0" frameborder="0">
    You dont need the expresion since your loadin ginto an Iframe with a fixed width. The I frame will never resize so neither will the page being loaded into it.

    on the "text" issue. text isn't a selector. not sure why FF does it. it also appears the text is only in the css as textarea but not reflected like that in your html.

    this all seems a little too complicated really. making a form isn't hard. securing one is more difficult but there are a lot of rescources for that.

    http://green-beast.com/blog/?page_id=71

    http://www.codingforums.com/showthread.php?p=359212
    Stop making things so hard on yourself.
    i is tugbucket :: help raise tugburg :: Whitehaven Kiwanis

  • #4
    New Coder
    Join Date
    Dec 2006
    Location
    College Station
    Posts
    26
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks for your help! I'm going to try that PHP contact form.

  • #5
    New Coder
    Join Date
    Dec 2006
    Location
    College Station
    Posts
    26
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Okay, I put that contact form in. I'm having problems with the security though--I had to comment out three spam catchers before it would let me send any messages. Can anyone help me with this?

    http://derbydigitalphoto.com/test/contact.php

    Thanks for all your help so far!
    Last edited by dbates; 12-05-2006 at 04:08 PM. Reason: fixed that problem... now I have a new one.

  • #6
    Senior Coder
    Join Date
    Jan 2005
    Location
    Memphis, TN
    Posts
    1,801
    Thanks
    8
    Thanked 131 Times in 129 Posts
    hmmm...

    I see your using the Green Beast one. Did you try it before you took anythign out of the code. I see your's in modified from the "whole" form. Just curious. Just making sure you didn' tchange any variable along the way.

    http://green-beast.com/blog/?p=128

    read down through it. The version to download should include all fixes but none the less.

    Can't really help on the back end stuff. I can't see your php sode through a link. Best option is to rebuild the page using the whole form from the download and just make sure it works liek that. then take out one piece at a time. Somethings are required so if you take them out of the HTML you need to make sure to take the appropriatte item out of the php processor as well or it will error.
    Stop making things so hard on yourself.
    i is tugbucket :: help raise tugburg :: Whitehaven Kiwanis

  • #7
    New Coder
    Join Date
    Dec 2006
    Location
    College Station
    Posts
    26
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Okay, I'll do that (once finals are over, probably)... thanks again for helping.

  • #8
    New Coder
    Join Date
    Dec 2006
    Location
    College Station
    Posts
    26
    Thanks
    0
    Thanked 0 Times in 0 Posts
    New problem--I moved all my files from a /test/ directory to the root, and now the contact form is broken. I get a 404 error when I try to submit a message:

    Not Found
    The requested URL /test/MMPerspectives.com_files/contact_form/gbcf_form.php was not found on this server.

    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
    I can't figure out where in the PHP files this is being set... there is no URL declared that I can see. Can anybody help me with this?

    --Daniel

  • #9
    New Coder
    Join Date
    Dec 2006
    Location
    College Station
    Posts
    26
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Whoops--my bad. I'd forgotten to update the PHP include command...


    *smacks self on head*


    --Daniel


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •