1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Trying to get a form to correctly submit via PHP but don't know what I'm doing

Discussion in 'HTML & Website Design' started by yesyoucant, Jan 10, 2011.

  1. #1
    Hi all,

    Originally I wrote this website in PHP because Iw as going to create 5 different menus, etc. Anyway a few of the pages are still in progress but I am trying to get the contact page to work. I have a feeling it's not because I wrote it in "PHP" and I have install some sort of PHP something or other on my hosting service (ipage.com) and it's unavailable to me. What's the easiest way to get this to submit the form info to my email address? Thanks in advance, here's the site

    Here's the godforsaken code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="Content-Language" content="en-us" />
    <meta name="author" content="amanda bruce design" />
    <meta name="copyright" content="copyright 2010 - amanda bruce design" />
    <title>amanda bruce design | contact | houston tx usa</title>
    <meta name="title" content="amanda bruce design | graphic design | houston tx usa" />
    <meta name="description" content="amanda bruce design" />
    <meta name="keywords" content="Houston graphic design, digital illustration, web design, infographics, technical drawing, information design" />
    
    <script type="text/javascript" src="../library/prototype.js"></script>
    <script type="text/javascript" src="../library/scriptaculous.js?load=effects,builder"></script>
    
    <script type="text/javascript" src="../library/lightbox.js"></script>
    
    
    <link rel="stylesheet" href="../library/lightbox.css" type="text/css" media="screen" />
    <link rel="stylesheet" href="../library/page.css" type="text/css" media="screen" />
    
    </head>
    <body>
    <div id="wrap" class="clearfix">
    <h1 id="logo"><a href="index.php" title="amanda bruce design">amanda bruce design</a></h1>
    <ul id="nav">
    <li id="print"><a href="../print/index.php" title="print">print design</a></li>
    <li id="advertising"><a href="../advertising/index.php" title="advertising">advertising design</a></li>
    
    <li id="illustration"><a href="../illustration/index.php" title="illustration">digital illustrations</a></li>
    <li id="web"><a href="../web/index.php" title="web">web design - html &amp; flash cs5</a></li>
    <li id="infographics"><a href="../infographics/index.php" title="infographics">informational graphic design</a></li>
    </ul>
    
       <!-- start content -->
    <div id="contentBlank">
    <img class="subnav" src="../images/s_contact.png" alt="Contact" title="Contact"/>
    <p>email / <a href="mailto:amandambruce@gmail.com">amandambruce@gmail.com</a></p>
    
    <br>
    <img class="subnav" src="../images/s_quotereqest.png" alt="quote request" title="quote request"/>
    
    <form method= "post" action="http://www.ipage.com/scripts/formemail.bml"> 
    <input type="hidden" name="my_email" value="mailto:amandambruce@gmail.com"> 
    
    <p>Please describe your project in as much detail as possible:</p>
    <textarea rows="6" cols="58" name="detail" validate="blank"></textarea>
    
    <br/><br/>
    <table>
    <tr><td>Name:</td>
    <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Email:</td></tr>
    
    <tr><td><input name="name" size="25" validate="blank" type="text" /></td>
    <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input name="email" size="25" validate="blank" type="text" /> <br><br></td></tr>
    
    <tr><td>Phone Number:</td>
    <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;State:</td></tr>
    <tr><td><input name="phoneNumber" size="25" validate="blank" type="text" /></td>
    <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input name="state" size="25" validate="blank" type="text" /></td></tr>
    
    
    
    
    </table><br><br>&nbsp;
    
    <input type="submit" name="submit" value="Submit Now" >
    
    <input type="hidden" name="thankyou_url" value="http://www.amandabrucedesign.com">
    
      </div>
    
    <ul id="subNav">
    <li id="about"><a href="about.php" title="About">About</a></li>
    <li id="resume"><a href="resume.php" title="Resume">Resume</a></li>
    <li id="contact"><a href="contact.php" title="Contact">Contact</a></li>
    <li id="copyrightWide"><a href="#" title="Copyright">Copyright</a></li>
    </ul>	
    </div>
    
    	   
    <!-- close wrapper -->
    
    </body></html>
    
    
    
    
    Code (markup):

    I appreciate it!!!
    AB
     
    yesyoucant, Jan 10, 2011 IP
  2. Dodger

    Dodger Peon

    Messages:
    1,494
    Likes Received:
    60
    Best Answers:
    0
    Trophy Points:
    0
    #2
    As Johnny 5 once said, "need more input" ... saying is not working is not much to go on.

    The actual script handling the form is at http://www.ipage.com/scripts/formemail.bml

    I would go through the documentation at ipage and see what they have to say about setting this up correctly.

    Also, ipage should have Php installed and running for you to use.
     
    Dodger, Jan 10, 2011 IP
  3. Raymond_M

    Raymond_M Peon

    Messages:
    79
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    The script may not be working because of the error in your html as show in the quotes below. Fix that and see if it works. To give you more help with the php end of it, we will need the php code. A Send form to email script is very simple though, so if you wanted to re-write it i could help you

    You should not have a space between the = and the "post".
     
    Raymond_M, Jan 10, 2011 IP
  4. Dodger

    Dodger Peon

    Messages:
    1,494
    Likes Received:
    60
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Actually, I think she is on a Windows Server, judging by the .bml file extension. So there is no Php as she mentioned.

    Still need more information. The page she is referencing is not on that site she linked to. Tough to see what is going wrong and where.

    BTW, Ray, that space in code won't hurt a thing. It is just whitespace.
     
    Dodger, Jan 10, 2011 IP
  5. Raymond_M

    Raymond_M Peon

    Messages:
    79
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    really? I still have lots to learn haha :D
     
    Raymond_M, Jan 10, 2011 IP
  6. yesyoucant

    yesyoucant Member

    Messages:
    66
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    43
    #6
    I did everything per iPage suggestions and everything seems to work; EXCEPT I am not getting any of the form information forwarded to my email!!! there is no script; everything i am using is on this page....
    http://www.amandabrucedesign.com/subnav/contact.php

    it is driving me crazy...how do i get it to forward to my email!! :(

    AB
     
    yesyoucant, Jan 10, 2011 IP
  7. yesyoucant

    yesyoucant Member

    Messages:
    66
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    43
    #7
    here's the page source; what else do i need to post:


    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="Content-Language" content="en-us" />
    <meta name="author" content="amanda bruce design" />
    <meta name="copyright" content="copyright 2010 - amanda bruce design" />
    <title>amanda bruce design | contact | houston tx usa</title>
    <meta name="title" content="amanda bruce design | graphic design | houston tx usa" />
    <meta name="description" content="amanda bruce design" />
    <meta name="keywords" content="Houston graphic design, digital illustration, web design, infographics, technical drawing, information design" />
    
    <script type="text/javascript" src="../library/prototype.js"></script>
    <script type="text/javascript" src="../library/scriptaculous.js?load=effects,builder"></script>
    
    <script type="text/javascript" src="../library/lightbox.js"></script>
    
    
    <link rel="stylesheet" href="../library/lightbox.css" type="text/css" media="screen" />
    <link rel="stylesheet" href="../library/page.css" type="text/css" media="screen" />
    
    </head>
    <body>
    <div id="wrap" class="clearfix">
    <h1 id="logo"><a href="index.php" title="amanda bruce design">amanda bruce design</a></h1>
    <ul id="nav">
    <li id="print"><a href="../print/index.php" title="print">print design</a></li>
    <li id="advertising"><a href="../advertising/index.php" title="advertising">advertising design</a></li>
    
    <li id="illustration"><a href="../illustration/index.php" title="illustration">digital illustrations</a></li>
    <li id="web"><a href="../web/index.php" title="web">web design - html &amp; flash cs5</a></li>
    <li id="infographics"><a href="../infographics/index.php" title="infographics">informational graphic design</a></li>
    </ul>
    
       <!-- start content -->
    <div id="contentBlank">
    <img class="subnav" src="../images/s_contact.png" alt="Contact" title="Contact"/>
    <p>email / <a href="mailto:amandambruce@gmail.com">amandambruce@gmail.com</a></p>
    
    <br>
    <img class="subnav" src="../images/s_quotereqest.png" alt="quote request" title="quote request"/>
    
    
    
    
    <form method= "post" action="http://www.ipage.com/scripts/formemail.bml">  
    <input type="hidden" name="my_email" value="mailto:amandambruce@gmail.com"> 
    
    <p>Please describe your project in as much detail as possible:</p>
    <textarea rows="6" cols="58" name="detail" validate="blank"></textarea>
    
    <br/><br/>
    <table>
    <tr><td>Name:</td>
    
    <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Email:</td></tr>
    <tr><td><input name="name" size="25" validate="blank" type="text" /></td>
    <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input name="email" size="25" validate="blank" type="text" /> <br><br></td></tr>
    
    <tr><td>Phone Number:</td>
    <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;State:</td></tr>
    <tr><td><input name="phoneNumber" size="25" validate="blank" type="text" /></td>
    <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input name="state" size="25" validate="blank" type="text" /></td></tr>
    
    
    
    
    </table><br><br>&nbsp;
    
    <input type="submit" name="submit" value="Submit Now" >
    
    <input type="hidden" name="thankyou_url" value="http://www.amandabrucedesign.com">
    </table>
      </div>
    
    <ul id="subNav">
    <li id="about"><a href="about.php" title="About">About</a></li>
    <li id="resume"><a href="resume.php" title="Resume">Resume</a></li>
    <li id="contact"><a href="contact.php" title="Contact">Contact</a></li>
    <li id="copyrightWide"><a href="#" title="Copyright">Copyright</a></li>
    
    </ul>	
    </div>
    	   
    <!-- close wrapper -->
    
    </body></html>
    
    
    
    
    Code (markup):
     
    yesyoucant, Jan 10, 2011 IP
  8. Dodger

    Dodger Peon

    Messages:
    1,494
    Likes Received:
    60
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Try removing "mailto:" from the hidden my_email value and leave just your email address. If that does not work, do you have a link to the instructions at ipage that I can look at?

    Edit: To be a llittle more clear:

    Change this:

    <input type="hidden" name="my_email" value="mailto:amandambruce@gmail.com"> 
    Code (markup):
    To this:

    <input type="hidden" name="my_email" value="amandambruce@gmail.com"> 
    Code (markup):
     
    Last edited: Jan 10, 2011
    Dodger, Jan 10, 2011 IP
  9. Raymond_M

    Raymond_M Peon

    Messages:
    79
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Do you have the ability to get the results from the forms at all? From my understanding, the action="" sends the form information to the ipage.com/scripts/formemail.bml which is probably not sending it to your email as you want. I thought the "malto" function in html just opens up a default mail client for the user? As opposed to actually sending the information to the desired email, which is why php, or other code is needed to finish the job?

    Can you see the code from the formemail.bml?
     
    Raymond_M, Jan 10, 2011 IP
  10. yesyoucant

    yesyoucant Member

    Messages:
    66
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    43
    #10
    I contacted the Ipage people (really freaking helpful by the way) and yes, this did work. where did i get mailto:??!!! thank you so much. i appreciate your help!
     
    yesyoucant, Jan 11, 2011 IP
  11. yesyoucant

    yesyoucant Member

    Messages:
    66
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    43
    #11
    thank you everyone for your input and help!
     
    yesyoucant, Jan 11, 2011 IP
  12. Dodger

    Dodger Peon

    Messages:
    1,494
    Likes Received:
    60
    Best Answers:
    0
    Trophy Points:
    0
    #12
    No problem Amanda.

    The mailto: you probably just copied from the actual email link which would add the mailto: to it, then pasted it into place. I do that often to, or leave the mailto: out.

    As for the script. Whether it is Php, Perl, or this BML stuff, they are all the same and just figured it would not be looking for the mailto: on the value -- so thought it was worth a shot.
     
    Dodger, Jan 11, 2011 IP
  13. Reyuken

    Reyuken Peon

    Messages:
    32
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #13
    Also something that might be usefull for you.
    You can use php function to send the mail straight from your website, avoiding the mailto: , which i don't like to use personally.

    php.net/manual/en/function.mail.php
     
    Reyuken, Jan 11, 2011 IP
  14. Dodger

    Dodger Peon

    Messages:
    1,494
    Likes Received:
    60
    Best Answers:
    0
    Trophy Points:
    0
    #14
    She mentioned in the OP that Php was not available to her. I think she is running on a Windows Server though, thus the .bml form script.
     
    Dodger, Jan 11, 2011 IP
  15. iLegitimate

    iLegitimate Peon

    Messages:
    319
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #15
    php my admin works decently
     
    iLegitimate, Jan 11, 2011 IP
  16. Dadsplmr

    Dadsplmr Greenhorn

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    21
    #16
    Good day, i am trying to create a contact form that sends email direct to my inbox. but the ipage email submission script doesn't work.. anyone can help me please please
     
    Dadsplmr, Aug 14, 2016 IP
  17. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #17
    First, start your own topic rather than resurrect a five+ year old thread. You'll get a better response.

    Before you do that, though, read How To Ask Questions The Smart Way by Eric S. Raymond. We need more information than you provided. The article will explain what we need and why we need it.

    cheers,

    gary
     
    kk5st, Aug 14, 2016 IP