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 6 of 6
  1. #1
    New to the CF scene
    Join Date
    Jun 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    problem with form

    I am building my first site for my buisness. I am building the site from a template. There is a contact form I want to use and I am having problems with getting it to work. When I test and submit the form I get the email, but there is no information from the input fields. The thank you redirect is working ok. The email comes in blank with no text from the input fields. This is my first time setting up a email form. I have spent hours searching and I have finally raising the white flag and going to ask the pro's here. You can find the contact page here. http://www.elitemechanicalplumbing.com/contact_us.html
    Thank you

    <form action="http://www.startlogic.com/scripts/formemail.bml" id="form"><input type="hidden" name="thankyou_url" value="http://www.jjplumbinghvac.com/thank_you_contact.html"/>
    <div class="container1">
    <div class="h"><input type="text" value="Enter your name" onblur="if(this.value=='') this.value='Enter your name'" onfocus="if(this.value =='Enter your name' ) this.value=''" /></div>
    <div class="h"><input type="text" value="Enter your e-mail" onblur="if(this.value=='') this.value='Enter your e-mail'" onfocus="if(this.value =='Enter your e-mail' ) this.value=''" /></div>
    <div class="h"><input type="text" value="Enter your phone" onblur="if(this.value=='') this.value='Enter your phone'" onfocus="if(this.value =='Enter your phone' ) this.value=''" /></div>
    <div class="h"><input type="text" value="Enter subject" onblur="if(this.value=='') this.value='Enter subject'" onfocus="if(this.value =='Enter subject' ) this.value=''" /></div>
    <textarea rows="40" cols="30" onblur="if(this.value=='') this.value='Enter message'" onfocus="if(this.value =='Enter message' ) this.value=''" >Enter message</textarea>
    <div class="container">
    <div class="fright">
    <a href="#" class="link-1" onclick="document.getElementById('form').reset()">Reset</a>
    <div class="indent-2"><a href="#" class="link-1" onclick="document.getElementById('form').submit()">Submit</a></div>
    </div>
    </div>
    </div>
    <input type="hidden" name="my_email" value="test@jjplumbinghvac.com"/>
    </form>
    Last edited by jjph; 06-29-2010 at 10:02 PM.

  • #2
    Senior Coder tomws's Avatar
    Join Date
    Nov 2007
    Location
    Arkansas
    Posts
    2,644
    Thanks
    29
    Thanked 330 Times in 326 Posts
    That yellow box on the post entry form is contains useful information:
    Reminder: Be sure to use a descriptive title for your question that summarizes it. If your post includes code, wrap it around using the [CODE] tag for multi-line code, and the [ICODE] tag for inline code that's part of a sentence.
    Assuming you're using your form handler correctly (whatever that formemail.bml thing is), you could ditch the javascript cruft and test a straight form. I suspect the problem is your use of the form handler (or the handler itself), though.
    Are you a Help Vampire?

  • #3
    Senior Coder effpeetee's Avatar
    Join Date
    Feb 2007
    Location
    Clapham Junction - London SW
    Posts
    4,885
    Thanks
    228
    Thanked 204 Times in 203 Posts
    Quite a lot of useful stuff here.

    Use the search facility. Single words often best.

    Frank
    * Sources (updated: 21.11.2012.
    Using Windows 8 Professional. 64bit with HP Photosmart 5510 printer Very useful site here.

  • #4
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    I'm going to assume that formemail.bml script isn't yours. Startlogic says you have to set up the form in a certain way.

    http://www.scriptarchive.com/readme/...tml#setting_up
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #5
    Senior Coder tomws's Avatar
    Join Date
    Nov 2007
    Location
    Arkansas
    Posts
    2,644
    Thanks
    29
    Thanked 330 Times in 326 Posts
    Quote Originally Posted by _Aerospace_Eng_ View Post
    How did you tie those two scripts together? I couldn't find the documentation for the OP's version on that miserable Startlogic "support" section, so I gave up digging for it.
    Are you a Help Vampire?

  • #6
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    I googled startlogic formemail and got this

    http://www.startlogic.com/knowledgeb....bml?kbid=1260

    It says the script they use is on scriptarchive.com however that is formmail so it could be different than formemail. Just noticed.

    I just searched for formemail.bml and it looks the op won't be coming back. He posted on other forums and someone there rewrote the form processor script for him. Turns out there were no names on the inputs.
    Last edited by _Aerospace_Eng_; 07-01-2010 at 06:31 AM.
    ||||If you are getting paid to do a job, don't ask for help on it!||||


  •  

    Posting Permissions

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