Jump to content

Accurax

Members
  • Posts

    246
  • Joined

  • Last visited

    Never

Everything posted by Accurax

  1. Should really think before i post tbh Anyway... for anyone else having this problem, the styling of the email link seems to be controlled by the <h1> tag, so: [code]h1 a:link,h1 a:visited,h1 a:active { color: #95ABD4; text-decoration: none;[/code] Seems to work fine ............
  2. I have an email address embedded in my site of the form [code]<a href="mailto:my@email.com?subject=Enquiry">Content here</a>[/code] This code is positioned in the #divheader and is of the class <H1> ....... Now i want to be able to style this email link using css, but the standard method with the div header: [code]#divheader a:link,#divheader a:visited,#divheader a:active { color: #95ABD4; text-decoration: none; }[/code] Doenst seem to work I was wondering if there was a special way that email links need to be styled? Thanks guys
  3. At the risk of becoming a pest, i have stumbled accross a rather infuriating problem.... I've asked several people, and as yet no-one has managed to figure out what is happening. The problem: I have a div tag #divleft ... it which i have a simple un ordered list with 10 li elements, here is the code for the list: [code]  <div id="divLeft">     <ul id="ulmainnav">   <li> Accounting Services & Hosted Software</li>   <li>Payroll Services</li>   <li>Credit Controll</li>   <li>Archiving Solutions</li>   <li> Cost Down Programs</li>   <li>Quality Systems</li>   <li>Business Planning</li>   <li>Search & Selection</li>   <li>Marketing Solutions</li>   <li>VOIP Solutions</li>   </ul>   </div>[/code] And here is the CSS for both the list elements and the div itself respectivly [code]#ulmainnav li { list-style-type: none; text-align: left; margin:0; width: 120px; padding: 0; } #ulmainnav ul { padding:0; margin:0; }[/code] and the div: [code]#divLeft { float: left; width: 120px; background-color: #C4D0E7; line-height: normal; clear: left; }[/code] the problem is that the list elements seem to justify themselves at some imaginary point halfway accross the div tag, rather than at the left hand edge as i would like. This especially a problem in firefox, as the text actually breaks out of the divtag and runs into whitespace on the page.... looking pretty tatty. Has anybody got any idea whats causing this.... and how it can be fixed?? Thanks
  4. I love you all ...... (well, nearly) Ive done it !!!! I had a rougue </div> that was closing my #divwrapper off just after the <body> tag. .....NOW... once ive got this darn navigation bar sorted ill be spring cleaning my code severely. Burt sorting the navbar will also remove much cluttered code asell thanks mate
  5. This doesnt work ........ how exactly am i meant to position the divwrapper withing the body tag ???
  6. The web page in question here is http://www.cbmgroup.co.uk As you can see at the moment, all the content is alligned on the left hand side of the screen......... now, i would like the content to appear in the middle of the viewers screen. I've tried various things, and some work on larger monitors, and some work on smaller monitors... i cant seem to find a method that just works. Basically i have (for these purposes) 2 divs... divheader, which simply has the header bar set as a background immage, and divcontainer, which "contains" everything else.......... now, getting the header bar centred is easy.... i simply set the <body> to 100% width, the divheader to 100% width, and make the background immage centred. The problem comes when i try to get div container centred under it......... div contaier "contains" divleft, divcentre and divright respectivly, now, basically, and it sounds like such a simple thing........ all i want tyo do is get #divcontainer to be centred relative to the 100% width body tag.......... but i cant acheive this...... Either the contents of divcontainer get moved to where i dont want them .......... or, when it looks like ive got it right on my 17" flatscreen at work, I get home and my little CRT has horrible horizontal scrollbars of doom............ please guys.... can anyone help me ?? Heres my css code .... [code]body { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 0.8em; line-height: 1.5em; margin: 0px; color: #000000; background-color: #FFFFFF; width: 975px; background-position: top; position: relative; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0%; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: solid; border-top-color: #FFFFFF; border-right-color: #FFFFFF; border-bottom-color: #FFFFFF; border-left-color: #FFFFFF; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; } #ulproductlist { list-style-type: none; font-family: Arial, Helvetica, sans-serif; color: #000066; text-align: center; padding-top: 10px; margin: 0px; } #divHeader { border-top-width: 20px; border-bottom-width: 3px; border-top-style: solid; border-right-style: none; border-bottom-style: none; border-left-style: none; border-top-color: #FFFFFF; margin: 0px; padding: 0px; height: 205px; width: 975px; border-bottom-color: #000000; background-repeat: no-repeat; background-position: center top; background-image: url(../images/Art/headernew01.jpg); clear: both; float: none; background-color: #FFFFFF; border-right-width: 0px; border-right-color: #FFFFFF; } #headerleft { float: left; margin: 0px; padding: 0px; width: 325px; } #headerright { float: right; margin: 0px; padding: 0px; border: 0px none; width: 325px; } #headercenter { clear: none; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; background-color: #93ACD4; margin: 0px; float: none; } #divLeft { margin: 0px; float: left; padding-top: 0px; padding-right: 5px; padding-bottom: 0px; padding-left: 5px; width: 160px; background-color: #FFFFFF; border-top-width: 0px; border-right-width: 3px; border-bottom-width: 3px; border-left-width: 3px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; background-image: none; background-repeat: no-repeat; background-position: center top; line-height: normal; clear: right; border-right-color: #333333; border-bottom-color: #333333; border-left-color: #333333; } #divRight { float: right; width: 160px; padding-top: 10px; padding-right: 7.5px; padding-bottom: 0px; padding-left: 7.5px; background-color: #C4D0E7; line-height: 1.7em; text-align: center; color: #000000; border-top-width: 10px; border-right-width: medium; border-bottom-width: medium; border-left-width: medium; border-top-style: solid; border-right-style: none; border-bottom-style: none; border-left-style: none; border-top-color: #FFFFFF; border-right-color: #333333; border-bottom-color: #000000; border-left-color: #000000; font-family: Arial, Helvetica, sans-serif; clear: right; } #divsearch { clear: both; left: 235px; padding-left: 235px; } #divCenter { background-color: #C4D0E7; text-align: justify; padding-top: 1em; padding-right: 10px; padding-bottom: 0px; padding-left: 10px; border-top-width: 10px; border-top-style: solid; border-top-color: #FFFFFF; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 192px; border-right-width: 3px; border-left-width: 3px; border-right-style: none; border-left-style: none; border-right-color: #000000; border-left-color: #000000; border-bottom-width: 2px; border-bottom-style: groove; border-bottom-color: #FFFFFF; background-image: none; background-repeat: no-repeat; background-position: center center; font-family: Arial, Helvetica, sans-serif; width: 555px; color: #000000; font-weight: 300; position: relative; top: auto; line-height: 1.7em; clear: none; } #divContainer { width: 975px; background-color: #FFFFFF; border-right-width: 0%; border-right-style: none; border-top-width: 0%; border-bottom-width: 0%; border-left-width: 0%; border-top-style: none; border-bottom-style: none; border-left-style: none; } .clearer { font-size: 0px; line-height: 0px; clear: both; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: #000000; } H1 { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 1.8em; color: #000000; border-bottom-width: 3px; border-bottom-style: double; border-bottom-color: #93ACD4; font-variant: small-caps; } #ulmainnav { margin: 0px; padding: 0px; list-style-type: none; text-align: center; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; } #ulmainnav li { background-repeat: no-repeat; background-position: center center; padding: 0px; margin: 0px; background-color: #FFFFFF; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; } #ulmainnav a:link,#ulmainnav a:visited,#ulmainnav a:active { font-family: Arial, Helvetica, sans-serif; font-size: 13px; text-decoration: none; background-image: none; background-repeat: no-repeat; background-position: center center; text-align: center; display: block; height: 65px; width: 100px; border: thin ridge #000000; top: 30px; margin-top: 0px; padding: 0px 10px 0px 20px; font-weight: bold; color: #000000; line-height: 60px; margin-right: 20px; margin-bottom: 0px; margin-left: 20px; float: none; clear: both; background-color: #95ABD4; } #ulmainnav a:hover, #ulmainnav a.current:link,#ulmainnav a.current:visited { background-image: none; color: #FFFFFF; background-color: #999999; } #divFooter { text-align: center; margin: 0px; padding: 0em; border-top-width: 3px; border-top-style: double; border-top-color: #000000; width: 975px; background-color: #FFFFFF; color: #000000; } h2 { font-family: "Lucida Console", "Lucida Sans", "Lucida Sans Unicode"; font-size: 1.2em; color: #333366; text-align: center; border-bottom-width: 3px; border-bottom-style: double; border-bottom-color: #FF3333; padding-top: 10px; } .pcontact { font-family: Arial, Helvetica, sans-serif; font-size: 1em; color: #000000; text-align: center; } #divFooter a:link,#divFooter a:visited,#divFooter a:active { color: #95ABD4; text-decoration: none; } #divFooter a:hover { color: #0033FF; } .buzserv { padding: 0%; border: 3px double #FF0000; margin: 5px; text-align: center; } .topright { background-image: url(../images/Working/form/corner_tr.gif); background-repeat: no-repeat; background-position: right top; } .topleft { background-image: url(../images/Working/form/cornermain.gif); background-repeat: no-repeat; background-position: left top; } .bottomright { background-image: url(../images/Working/form/corner_br.gif); background-repeat: no-repeat; background-position: right bottom; } .bottomleft { background-image: url(../images/Working/form/corner_bl.gif); background-repeat: no-repeat; background-position: left bottom; } h3 { font-family: Arial, Helvetica, sans-serif; font-size: 1em; color: #9966FF; border-bottom-width: 1px; border-bottom-style: dashed; border-bottom-color: #000000; } #divform { background-color: #FFFFFF; border-left-width: 160px; border-left-style: solid; border-left-color: #93ACD4; margin: 0px; padding: 0px; width: 750px; } #ulpayrollnav { margin: 0px; padding: 0px; list-style-type: none; text-align: center; border: 0px none; display: inline; } #ulpayrollnav li { background-repeat: no-repeat; background-position: center center; padding: 0px; margin: 0px; border: 0px none; display: inline; } #ulpayrollnav a:link,#ulpayrollnav a:visited,#ulpayrollnav a:active { font-family: Arial, Helvetica, sans-serif; font-size: 13px; text-decoration: none; background-image: none; background-repeat: no-repeat; background-position: center center; text-align: center; display: inline; border: none; padding: 0px 10px; font-weight: bold; color: #000000; line-height: 10px; margin: 0px; } #ulpayrollnav a:hover, #ulpayrollnav a.current:link,#ulpayrollnav a.current:visited { background-image: none; color: #93ACD4; } .embed_img_left { float: left; padding: 0px; border-right-style: none; margin: 5px; } .embed_img_right { float: right; clear: left; margin: 10px; } h4 { font-family: Arial, Helvetica, sans-serif; color: #6699FF; text-align: center; font-size: 1.9em; border-bottom-width: thin; border-bottom-style: groove; border-bottom-color: #000000; } #divBanner { height: 30px; padding-top: 5px; padding-bottom: 5px; float: none; clear: left; width: 468px; left: 235px; position: relative; } #ulpayroll { list-style-type: square; clear: none; text-align: justify; } #divContainer a:link,#divContainer a:visited, #divContainer a:active { text-decoration: underline; color: #3333FF; } #divContainer a:hover,#divContainer a.current:link,#divContainer a.current:visited { color: #FFFFFF; } #divLeft a:link,#diveLeft a:visited,#diveLeft a:active { color: #0033FF; } #divLeft a:hover,#divleft a.current:link,#divLeft a.current:visited { color: #CBD5EE; } h6 { font-size: 30px; color: #666666; text-align: center; height: 50px; } [/code] Please, i really appreciate any help  :)
  7. Ok, ill do the code for form1,2 & 3 .... I assume the problem with from 4 is the same, so no need to repeat code unless u specifically need it.... do my bit for the bandwidth [img src=\"style_emoticons/[#EMO_DIR#]/laugh.gif\" style=\"vertical-align:middle\" emoid=\":laugh:\" border=\"0\" alt=\"laugh.gif\" /] I have omitted unnessecary Html in the following code; Form #1 [code]             <form action="form2.php" method="POST">                               <div align="center">   <table width="0" height="0" border="0" align="center" cellpadding="5" cellspacing="0" class="cvtable">             <tr>           <td height="35" class="topleft">&nbsp;</td>           <td class="topright"><div align="center"><span class="style1">Please enter your information, click continue to proceed.</span></div></td>           </tr>           <tr>           <td width="150"><p align="left"><b>Your First Name:</b></td>           <td width="300"><input name="firstname" type ="text" size="15" maxlength="25"></td>            </tr>         <tr>           <td width="150"><p align="left"><b>Your Middlename:</b></td>           <td width="300"><input name="middlename" type ="text" size="15" maxlength="25"></td>          </tr>         <tr>           <td width="150"><p align="left"><b>Your Surname:</b></td>           <td width="300"><input name="surname" type ="text" size="15" maxlength="25"></td>          </tr>         <tr>           <td width="150"><div align="center">             <div align="left"><b>Your Sex:</b></div></td>           <td width="300"><input name="sex" type="radio" value="male"/><b>Male</b>                         <input name="sex" type="radio" value="female"/><b>Female</b></td>          </tr>         <tr>           <td width="150"><div align="left">             <div align="left"><b>Your Marital Status:</b></div></td>           <td width="300"><input name="marital" type="radio" value="single"/><b>Single</b>                         <input name="marital" type="radio" value="married"/><b>Married</b></td>          </tr>         <tr>           <td width="150"><div align="left"><b>Number of Children:</b></div></td>           <td width="300"><input name="children" type ="text" size="4" maxlength="2"></td>          </tr>         <tr>           <td width="150"><div align="left"><b>Date Of Birth:</b></div></td>           <td width="300">                       <select name="month">               <option>January               <option>Febuary               <option>March               <option>April               <option>May               <option>June               <option>July               <option>August               <option>September               <option>October               <option>November               <option>December                 </select>                        <select name="day">               <option>1st <option>2nd <option>3rd <option>4th <option>5th               <option>6th <option>7th <option>8th <option>9th <option>10th               <option>11th <option>12th <option>13th <option>14th <option>15th               <option>16th <option>17th <option>18th <option>19th <option>20th                       <option>21st <option>22nd <option>23rd <option>24th <option>25th                       <option>26th <option>27th <option>28th> <option>29th <option>30th <option>31st               </select>                        <select name="year">               <option>1930 <option>1931 <option>1932 <option>1933 <option>1934 <option>1935 <option>1936 <option>1937 <option>1938 <option>1939               <option>1940 <option>1941 <option>1942 <option>1943 <option>1944 <option>1945 <option>1946 <option>1947 <option>1948 <option>1949               <option>1950 <option>1951 <option>1952 <option>1953 <option>1954 <option>1955 <option>1956 <option>1957 <option>1958 <option>1959               <option>1960 <option>1961 <option>1962 <option>1963 <option>1964 <option>1965 <option>1966 <option>1967 <option>1968 <option>1969               <option>1970 <option>1971 <option>1972 <option>1973 <option>1974 <option>1975 <option>1976 <option>1977 <option>1978 <option>1979               <option>1980 <option>1981 <option>1982 <option>1983 <option>1984 <option>1985 <option>1986 <option>1987 <option>1988 <option>1989               <option>1990 <option>1991 <option>1992 <option>1993 <option>1994 <option>1995 <option>1996 <option>1997 <option>1998 <option>1999               <option>2000 <option>2001 <option>2002 <option>2003 <option>2004 <option>2005 <option>2006             </select>        </td>                <tr>           <td>&nbsp;</td>           <td>&nbsp;</td>           </tr>                <tr>           <td class="bottomleft">&nbsp;</td>           <td class="bottomright"><input name="submit" type="submit" value="Continue" />      </td>           </tr>        </table>   </p>               </div>     </form>        <p align="center">&nbsp;</p>   </div>   <div class="clearer"></div> </div> <div id="divFooter"><a href="../../index.htm">Home</a> <a href="../../Business%20Services/Business.htm">Business</a> <a href="../../CVs/CV.htm">Cv services</a> <a href="../../Location/Location.htm">Location</a> <a href="../../Contact%20Us/ContactUs.htm">Contact Us</a> </div> </body> </html>[/code] The above form passes the information into the hidden fields on number 2 without issue: Form #2 [code]    <?php $firstname=$_POST['firstname']; $middlename=$_POST['middlename']; $surname=$_POST['surname']; $sex=$_POST['sex']; $marital=$_POST['marital']; $children=$_POST['children']; $month=$_POST['month']; $day=$_POST['day']; $year=$_POST['year']; ?>     <input type="hidden" name="firstname" value="<?php echo($firstname); ?>">     <input type="hidden" name="middlename" value="<?php echo($middlename); ?>">     <input type="hidden" name="surname" value="<?php echo($surname); ?>">     <input type="hidden" name="sex" value="<?php echo($sex); ?>">     <input type="hidden" name="marital" value="<?php echo($marital); ?>">     <input type="hidden" name="children" value="<?php echo($children); ?>">     <input type="hidden" name="month" value="<?php echo($month); ?>">     <input type="hidden" name="day" value="<?php echo($day); ?>">     <input type="hidden" name="year" value="<?php echo($year); ?>"> <form action="form3.php" method="POST">   <div align="center">     <table width="" border="0" cellpadding="5" cellspacing="0" class="cvtable">        <tr>         <td class="topleft">&nbsp;</td>         <td class="topright">&nbsp;</td>         </tr>            <tr>         <td width="150"><p align="left"><b>Your Address:</b></td>         <td width="300"><input name="address1" type ="text" size="40" maxlength="45"></td>         </tr>         <tr>         <td width="150"><p align="left"></td>         <td width="300"><input name="address2" type ="text" size="40" maxlength="45"></td>         </tr>         <tr>         <td width="150"><p align="left"><b>Your Town:</b></td>         <td width="300"><input name="town" type ="text" size="30" maxlength="25"></td>         </tr>         <tr>         <td width="150"><p align="left"><b>Your Postcode:</b></td>         <td width="300"><input name="postcode" type ="text" size="10" maxlength="12"></td>         </tr>         <tr>         <td width="150"><p align="left"><b>Your Mobile No':</b></td>         <td width="300"><input name="mobile" type ="text" size="20" maxlength="25"></td>         </tr>         <tr>         <td width="150"><p align="left"><b>Your Home No':</b></td>         <td width="300"><input name="home" type ="text" size="20" maxlength="25"></td>         </tr>         <tr>         <td width="150"><p align="left"><b>Your Work No':</b></td>         <td width="300"><input name="work" type ="text" size="20" maxlength="25"></td>         </tr>         <tr>         <td width="150"><div align="center">           <div align="left"><b>Prefered method of contact:</b></div></td>         <td width="300"><input name="prefered" type="radio" value="mobile"/><b>Mobile</b>                         <input name="prefered" type="radio" value="home"/><b>Home</b>                       <input name="prefered" type="radio" value="work"/><b>Work</b>             </td>         </tr>         <tr>         <td width="150"><p align="left"><b>Your E-Mail:</b></td>         <td width="300"><input name="email" type ="text" size="20" maxlength="50"></td>         </tr>         <tr>         <td width="150"><div align="left">           <div align="left"><b>Can We Send drafts / revisions to this email address?:</b></div></td>         <td width="300"><input name="canmail" type="radio" value="yes"/><b>Yes</b>                         <input name="canmail" type="radio" value="no"/><b>No</b></td>         </tr>         <tr>           <td class="bottomleft">&nbsp;</td>           <td class="bottomright"><input name="submit" type="submit" value="Continue" /></td>         </tr>     </table>      </div> </form>              <p align="center">   </div>   <div class="clearer"></div> </div> <div id="divFooter"><a href="../../index.htm">Home</a> <a href="../../Business%20Services/Business.htm">Business</a> <a href="../../CVs/CV.htm">Cv services</a> <a href="../../Location/Location.htm">Location</a> <a href="../../Contact%20Us/ContactUs.htm">Contact Us</a> </div> </body> </html>[/code] now, the information that is[b] entered[/b] onto form #2 is passed correctly into the hidden fields on form #3... but the value's of the hidden fields from form #1 is not passed on; Form #3 [code]         <?php $firstname=$_POST['firstname']; $middlename=$_POST['middlename']; $surname=$_POST['surname']; $sex=$_POST['sex']; $marital=$_POST['marital']; $children=$_POST['children']; $month=$_POST['month']; $day=$_POST['day']; $year=$_POST['year']; $address1=$_POST['address1']; $address2=$_POST['address2']; $town=$_POST['town']; $postcode=$_POST['postcode']; $mobile=$_POST['mobile']; $home=$_POST['home']; $work=$_POST['work']; $prefered=$_POST['prefered']; $email=$_POST['email']; $canmail=$_POST['canmail']; ?>     <input type="hidden" name="firstname" value="<?php echo($firstname); ?>">     <input type="hidden" name="middlename" value="<?php echo($middlename); ?>">     <input type="hidden" name="surname" value="<?php echo($surname); ?>">     <input type="hidden" name="sex" value="<?php echo($sex); ?>">     <input type="hidden" name="marital" value="<?php echo($marital); ?>">     <input type="hidden" name="children" value="<?php echo($children); ?>">     <input type="hidden" name="month" value="<?php echo($month); ?>">     <input type="hidden" name="day" value="<?php echo($day); ?>">     <input type="hidden" name="year" value="<?php echo($year); ?>">          <input type="hidden" name="address1" value="<?php echo($address1); ?>">     <input type="hidden" name="address2" value="<?php echo($address2); ?>">     <input type="hidden" name="town" value="<?php echo($town); ?>">     <input type="hidden" name="postcode" value="<?php echo($postcode); ?>">     <input type="hidden" name="mobile" value="<?php echo($mobile); ?>">     <input type="hidden" name="home" value="<?php echo($home); ?>">     <input type="hidden" name="work" value="<?php echo($work); ?>">     <input type="hidden" name="prefered" value="<?php echo($prefered); ?>">     <input type="hidden" name="email" value="<?php echo($email); ?>">     <input type="hidden" name="canmail" value="<?php echo($canmail); ?>"> <form action="formend.php" method="POST">   <div align="center">     <table width="" border="0" align="center" cellpadding="5" cellspacing="0" class="cvtable">        <tr>         <td class="topleft">&nbsp;</td>         <td class="topright">&nbsp;</td>         </tr>            <tr>         <td width="150"><p align="left"><b>Your Address:</b></td>         <td width="300"><input name="address1" type ="text" size="40" maxlength="45"></td>         </tr>         <tr>         <td width="150"><p align="left"></td>         <td width="300"><input name="address2" type ="text" size="40" maxlength="45"></td>         </tr>         <tr>         <td width="150"><p align="left"><b>Your Town:</b></td>         <td width="300"><input name="town" type ="text" size="30" maxlength="25"></td>         </tr>         <tr>         <td width="150"><p align="left"><b>Your Postcode:</b></td>         <td width="300"><input name="postcode" type ="text" size="10" maxlength="12"></td>         </tr>         <tr>         <td width="150"><p align="left"><b>Your Mobile No':</b></td>         <td width="300"><input name="mobile" type ="text" size="20" maxlength="25"></td>         </tr>         <tr>         <td width="150"><p align="left"><b>Your Home No':</b></td>         <td width="300"><input name="home" type ="text" size="20" maxlength="25"></td>         </tr>         <tr>         <td width="150"><p align="left"><b>Your Work No':</b></td>         <td width="300"><input name="work" type ="text" size="20" maxlength="25"></td>         </tr>         <tr>         <td width="150"><div align="center">           <div align="left"><b>Prefered method of contact:</b></div></td>         <td width="300"><input name="prefered" type="radio" value="mobile"/><b>Mobile</b>                         <input name="prefered" type="radio" value="home"/><b>Home</b>                       <input name="prefered" type="radio" value="work"/><b>Work</b>             </td>         </tr>         <tr>         <td width="150"><p align="left"><b>Your E-Mail:</b></td>         <td width="300"><input name="email" type ="text" size="20" maxlength="50"></td>         </tr>         <tr>         <td width="150"><div align="left">           <div align="left"><b>Can We Send drafts / revisions to this email address?:</b></div></td>         <td width="300"><input name="canmail" type="radio" value="yes"/><b>Yes</b>                         <input name="canmail" type="radio" value="no"/><b>No</b></td>         </tr>         <tr>           <td class="bottomleft">&nbsp;</td>           <td class="bottomright"><input name="submit" type="submit" value="Continue" /></td>         </tr>     </table>    </div> </form>              <p align="center">   </div>   <div class="clearer"></div> </div> <div id="divFooter"><a href="../../index.htm">Home</a> <a href="../../Business%20Services/Business.htm">Business</a> <a href="../../CVs/CV.htm">Cv services</a> <a href="../../Location/Location.htm">Location</a> <a href="../../Contact%20Us/ContactUs.htm">Contact Us</a> </div> </body> </html>[/code] I hope that helps a little with solving this ... i figure that i must have something to do with the hidden fields not being posted to the next form... but i dont really see why [img src=\"style_emoticons/[#EMO_DIR#]/huh.gif\" style=\"vertical-align:middle\" emoid=\":huh:\" border=\"0\" alt=\"huh.gif\" /] Thanks for your time mate... your help is really appreciated [img src=\"style_emoticons/[#EMO_DIR#]/smile.gif\" style=\"vertical-align:middle\" emoid=\":smile:\" border=\"0\" alt=\"smile.gif\" /]
  8. I think it was just an issue with wamp ... it works fine (over 2 pages) on my remote server [img src=\"style_emoticons/[#EMO_DIR#]/smile.gif\" style=\"vertical-align:middle\" emoid=\":smile:\" border=\"0\" alt=\"smile.gif\" /] However, i have another little problem you might be able to help me with. Im pretty sure its something ridiculously simple.... but after 2 hours i still cant get it working.. and im geting pretty ##~@. Bleep ... off [img src=\"style_emoticons/[#EMO_DIR#]/wink.gif\" style=\"vertical-align:middle\" emoid=\":wink:\" border=\"0\" alt=\"wink.gif\" /] I need 4 pages to my form, i have them all coded out... now, and sorry if this is odd. Form2 wil recieve data into its hidden fields from Form1 Form3 will recive from form2 Form4 will recieve from form3 but the data int being carried... so on Form3 for example, allthough the hidden fields exist the value is set to "" aka bugger all. Surly the idea is to get the data to carry through from form 1 all the way to the end in order to process it ? Any idea's? ... i can post the code if u need... please ask b4 i do as its quite long now [img src=\"style_emoticons/[#EMO_DIR#]/smile.gif\" style=\"vertical-align:middle\" emoid=\":smile:\" border=\"0\" alt=\"smile.gif\" /]
  9. [!--quoteo(post=376319:date=May 23 2006, 08:07 AM:name=Orio)--][div class=\'quotetop\']QUOTE(Orio @ May 23 2006, 08:07 AM) [snapback]376319[/snapback][/div][div class=\'quotemain\'][!--quotec--] Now, page3.php will recive both the age and the name, and can email them: [code]$name=$_POST['name']; $age=$_POST['age']; $subject="New CV"; $email="my@email.com"; $msg="New CV! \n Name: ".$name."\n Age:".$age."\n wants a CV"; mail($email,$subject,$msg); echo("Mail sent. Thank you.");[/code] Now as you see, you need to send the info from page to page with a form, and have it "remmbered" using hidden fields that PHP echos the last page's information into them. Orio. [/quote] Wow, thanks mate, Ive pretty much started recoding my form from scratch, as its easier to get my head around it that way. I can now manage to get the form to successfuly skip from page 1 - page2 - page3 .... but, on arrival at page 3 (on localhost), i get a funny message; [code] Warning: mail() [function.mail]: "sendmail_from" not set in php.ini or custom "From:" header missing in C:\wamp\www\test\practice forms\form3.php on line 32 Mail sent. Thank you.[/code] I have basically inserted the code you suggested, but i have surrounded it with <? ... ?> tags, as it wouldnt work at all without them, is this correct? Is the 3rd page meant to simply display a rundown of the filled in fields after posting them? I think im getting there... i fear i may have been severly over-complicating things before.... just a little push pls [img src=\"style_emoticons/[#EMO_DIR#]/smile.gif\" style=\"vertical-align:middle\" emoid=\":smile:\" border=\"0\" alt=\"smile.gif\" /]
  10. Hi, this is a related subject to a previous post I made a few weeks back, But since the question is now become more specific, and, i also now know what i am trying to do, i felt it needed a new topic. I am currently (still) trying to build this form to collect information to allow me to write CV's for people. You can see it [a href=\"http://members.lycos.co.uk/cmbtest\" target=\"_blank\"]here[/a]. Due to the fact that the form is going to be excedingly long, i need to break it down into several smaller chunks. To do this i've decided to use hidden fields to store the info from the previous form page(s) and submitt them all together. What im basically looking for (in an ideal world) is a decent tutorial on how to acomplish this. I've spent quite some time looking, and allthough i understand how to create hidden fields, and how to have them store the information im missing some more basic knowledge thats stopping me from geting started. Currently, as you will see if you view my site <above>, I have a simple one page form with a submit button that $_POST 's the gathered information to my email inbox; Now, in order to make the multiple page's work i think i need to do the following (confirmation appreciated) 1) Remove the Section of code that sends / formatts the email from all but the final page of the form. 2)Add a link from the first page to the second..... second to third etc, this will replace the "submit" button. 3)Code the hidden fields into all pages after the first. 4) Add the submitt button on the final page. Assuming the above is methodically correct, i have a question; *How do i get from page 1 to page 2 to page 3 etc .... is there a special method i must use... or will a simple link work? Silly question really .... but there are probably more to come... to be fair its probably preferable if someone could point me at a decent turtorial dealing with hidden fields when applied to a multi-page form.... although it may be a somewhat specific requirement for a turorial [img src=\"style_emoticons/[#EMO_DIR#]/unsure.gif\" style=\"vertical-align:middle\" emoid=\":unsure:\" border=\"0\" alt=\"unsure.gif\" /] Any and all hellp appreciated
  11. [quote name='crazy8' date='May 17 2006, 07:20 PM' post='374824'] [code] $message .= "From:" . "$_POST[start_month]\n"; $message .= "Of Year: " . $start_year . "\n";[/code] in the above code your have a space "_" in your POST name.... this is wrong, try something along the lines of, [code]"$_POST{start]\n";[/code] Basically keep them as short and sweet as possible, i had this problem for a while, only just noticed it when reading through my previous post. The second line should also have the $_POST statement in it i think. Assuming you have 2 drop down menu's.. one for month and one for year, and they looked (simplified) like this; [code]<b>$start_date:</b><br>\n <select name=\"month\"> <option>January <option>Febuary <option>March </select>[/code] And; [code]<select name=\"year\"> <option>1930 <option>1931 <option>1932 <option>1933 </select>[/code] First i have used $start_date on the first drop down to actually name the menu's on the web page, this means i must define $start_date somewhere else, so; [code]$start_date = "Date You Started";[/code] So on the webpage this menu will have a title of "Date Your Started" Now, when someone fills the form in i assume, you want it to display "in-line" with maybe a colon seperating the year : month : day : etc. to do this with the above table, and to have the headings in bold use the following code; [code]$msg .= "<br><b>$start_date:</b> $_POST[month]\n"; $msg .= "<b>:</b> $_POST[year]\n";[/code] if that doesnt work, check for syntax errors... [img src=\"style_emoticons/[#EMO_DIR#]/smile.gif\" style=\"vertical-align:middle\" emoid=\":smile:\" border=\"0\" alt=\"smile.gif\" /]
  12. Sorry, i'm at the level where im trying to figure the whole file attachment thing out myself mate. I cant imagine its that difficult, and i'm planning on getting it figured out sometime next week... after i learn all about multi page forms and "hidden Fields"... (ick much typing). As for your drop down menus, i cant understand why they donet work if you did what i said above. mine work fine in exactly that syntax. The form im working on at the moment is made up of 2 seperate files. The first is inbedded into the .php page that i want displayed, and the other is just code. Basically ive put all my definitions of variables..eg: [code]$your_sex = "Your Sex";[/code] Into the second file, and just used the "include" statement in the first file to make sure the server reads it. There's no mechanical reason why this should be any differant than simply putting everything into one file, but, it does make things a lot cleaner, for me at least. So, lets assume we were doing a simple drop down menu, for finding someones sex out, the menu itself would be defined by; [code] <b>$your_sex:</b><br>\n <select name=\"sex\"> <option>Male <option>Female </select>[/code] And the message would be selected, formatted and mailed by; [code] $msg .= "<br><b>$your_sex:</b> $_POST[sex]\n";[/code] All three parts are needed in order for the above code to woek, you can either put all three in the main page, or, as i have use 2 (or more) seperate files and the "include" statement. [code]include("define.php");[/code] This "include" goes on your main page, directly after your opening (<?) php tag. Hope this helps a bit, sorry about the attachment thing, if i figure it out ill let you know asap.
  13. Ok, let me see if i have this right, please forgive my ignorance. The first page of my form will remain unchanged, apart from the submit button will now move the user to stage 2 instead of $_POST -ing the information to my mailbox, Stage 2 will contain all of the fields the user must fill in.... plus a number of hidden fields that wil store the info from the previous section. Then assuming (for simplicity) a 2 page form, the submit button on page 2 will $_POST all the information together. I understand the concept, however i have 1 or 2 questions; [code]<? // from prev page $from_page_1 = htmlspesialchars($_POST['from_page_1']); ?> <form name="page_2" action="page_3.php" method="post" /> <input type="hidden" name="from_page_1" value="<? echo $from_page_1; ?>" /> <input type="text" name="from_page_2" value="" /> <input type="submit" name="page_2_submit" value="next step" />[/code] In the above code you make referance to $from_page_one ..... do i need to define this as being = to the information in the fields in page one?... and if so... how? Or, is $from_page_one a generic term that youve used for example... if so... what to replace it with? Basically i'm just trying to understand [i]how[/i] it works.... what the mechanics of it are. I'm especially confused by; [code]<? // from prev page $from_page_1 = htmlspesialchars($_POST['from_page_1']); ?>[/code] Sorry to be a pain, but i need to understand how things work [img src=\"style_emoticons/[#EMO_DIR#]/unsure.gif\" style=\"vertical-align:middle\" emoid=\":unsure:\" border=\"0\" alt=\"unsure.gif\" /] [img src=\"style_emoticons/[#EMO_DIR#]/unsure.gif\" style=\"vertical-align:middle\" emoid=\":unsure:\" border=\"0\" alt=\"unsure.gif\" /]
  14. hmmm... sounds interesting. Any chance you could give me a little more advice on the hidden field thing... its not a concept im familiar with im afraid. thanks [img src=\"style_emoticons/[#EMO_DIR#]/smile.gif\" style=\"vertical-align:middle\" emoid=\":smile:\" border=\"0\" alt=\"smile.gif\" /]
  15. [!--quoteo(post=374513:date=May 16 2006, 08:35 PM:name=crazy8)--][div class=\'quotetop\']QUOTE(crazy8 @ May 16 2006, 08:35 PM) [snapback]374513[/snapback][/div][div class=\'quotemain\'][!--quotec--] WOW 1 week and 34 hits on this post and NOTHING.....I find it hard to beleive that out of 34 views that not a single one of them people knew anything about any of my questions..Good thing Im not on a time schedual. Guess I will have to find a PHP forum where people actually have answers and that can help. Thanks alot for letting me know this ISNT the place to go. Keep up the good work everyone. [/quote] Hmm ... i'm pretty new to thi myself mate, but, alot of the stuff your asking for i had to figure out myself, its not particularly difficult... allthough i understand how frustrating it is [img src=\"style_emoticons/[#EMO_DIR#]/wink.gif\" style=\"vertical-align:middle\" emoid=\":wink:\" border=\"0\" alt=\"wink.gif\" /] As far as the drop down menu's go, just make sure your identified them all correctly, and then just "call" that anme with the $_POST Command ... all the layout stuff your trying to do is basic Html formatting and you should be able to figure it out by looking at the code i've posted. Code 1. Define your drop down menu's [code] <b>$your_dob:</b><br>\n         <select name=\"month\">         <option>January         <option>Febuary         <option>March </select>[/code] Code 2. Fomatt the E-mail [code]$msg .= "<br><b>$your_dob:</b> $_POST[month]\n";                     $msg .= "<b>:</b> $_POST[day]\n";                     $msg .= "<b>:</b> $_POST[year]\n<br>";[/code] Obviously i have 2 other drop down menus'... one for day and one for year..... the above code will result in a message of the format : [b]Your Dob:[/b] Month : Day : Year The $your_dob variable is defined elswhere as being = to "Your Dob" ... and the [b]BOLD[/b] effect is added in the code above that formatts the message.... as you should be able to see. If you can't figure the bold thing out..... post back and watch what happens when you highlight and select bold in this message field.... basic Html my friend. I hope I've helped, i know how frustrating learning this on your own can be. [img src=\"style_emoticons/[#EMO_DIR#]/smile.gif\" style=\"vertical-align:middle\" emoid=\":smile:\" border=\"0\" alt=\"smile.gif\" /]
  16. Hi guys, I'll get straight to the point; I currently have a functioning form, laid out in Html, and posted with the $_POST command. It's a very simple form, with some radio buttons, some drop downs & of course text fields, simple, but it works, [a href=\"http://members.lycos.co.uk/cmbtest\" target=\"_blank\"]you can see it here[/a], its a form for gathering information to allow me to write a persons CV. All i want my form to do is take the information a user enters and send it to my email inbox, thats it. However I have a problem with userbility, my form (once complete) is going to be extremely long, and, in an effort to avoid scaring people off i've decided the form must be broken down a bit. So, I need a simple yet effective method of controlling the visible length of my form, my favoured method would be to have the form divided into 4 segments, each on there own page, personal information on the first page, then education, then work experiance, and finally personal acheivments & comments... for example. I could do this in a somewhat convulated manner at the moment, but it would result in 4 seperate Emails being sent to my inbox for EVERY user... I would then have to match the peices together using the IP Address... this as i'm sure you can appreciate is not ideal. What is needed is a way of bundleing the information from each page together and sending it as a single seamless email. Is MySql the answer? ....... I havnt begun teaching myself this yet.. (3months ago i couldnt speak Html lol) ... I could really do with some kicks and prods in the right direction. I could also do with an estimate of the difficulty of what im trying to do..... how long is it likley to take me to learn enough to do this? ... time is becoming an issue for this little project so all and any help and assistance is greatly recieved. Thankyou Accura
  17. [!--quoteo(post=372977:date=May 10 2006, 11:58 AM:name=Crayon Violent)--][div class=\'quotetop\']QUOTE(Crayon Violent @ May 10 2006, 11:58 AM) [snapback]372977[/snapback][/div][div class=\'quotemain\'][!--quotec--] okay you have your quotes escaped \" on your other stuff but not on your name so i assume you need to do this: name=\"sex\" or else, you need to remove all of the backslashes in your form. it depends on how you are presenting your form in your code. please post your document in its entirety. edit: nvm i posted same time as you [/quote] Thanks anyway ..... thats exactly what the problem was... <doh> .... and dont worry... id never post my code in its entirity.... i think it would take 15 odd pages up anyway... i'll only ever post code that relevant to the problem in hand. but thanks for the heads up [img src=\"style_emoticons/[#EMO_DIR#]/wink.gif\" style=\"vertical-align:middle\" emoid=\":wink:\" border=\"0\" alt=\"wink.gif\" /]
  18. Thanks, I've edited this post... as initiall i still couldnt get it to work. But....... [img src=\"style_emoticons/[#EMO_DIR#]/smile.gif\" style=\"vertical-align:middle\" emoid=\":smile:\" border=\"0\" alt=\"smile.gif\" /] [img src=\"style_emoticons/[#EMO_DIR#]/smile.gif\" style=\"vertical-align:middle\" emoid=\":smile:\" border=\"0\" alt=\"smile.gif\" /] [img src=\"style_emoticons/[#EMO_DIR#]/smile.gif\" style=\"vertical-align:middle\" emoid=\":smile:\" border=\"0\" alt=\"smile.gif\" /] Ive done it..... Thankyou so so so so much ,........ after thinking about what you said ..... somthing inside me just popped... and i realised the [b]BASIC[/b] error i was making with the syntax of my html. You were right.... and it makes sense also... i cannot pass a variable into itself... i think i was trying to do this.... thanks again. Now.... time to look at those drop down menu's I hope you dont mind if.... once ive spent some time trying to figure it out .... if i cant get it, ill post here again, i really appreciate it.... time for some vodka to celerbrate i feel [img src=\"style_emoticons/[#EMO_DIR#]/huh.gif\" style=\"vertical-align:middle\" emoid=\":huh:\" border=\"0\" alt=\"huh.gif\" /]
  19. Hi there, i figure this is the best place for this... First off... heres the URL that im working from so you can see what im doing : [a href=\"http://members.lycos.co.uk/cmbtest/\" target=\"_blank\"]MyTestSite[/a] If your navigate to the "CV" section, and click on the Forms link.... you will find the form im constructing. Now, all this form has to do is send the submitted data to me, and, it does this perfectly well ... for the text fields. the radio buttons (and dropdown) do not send the information that is selected... the best ive managed is a named but empty field in the submitted mail. I think i may be missing something quite fundemental, and i'm quite frustrated that the past 6 hours havnt manage to reveal the answer to me [img src=\"style_emoticons/[#EMO_DIR#]/unsure.gif\" style=\"vertical-align:middle\" emoid=\":unsure:\" border=\"0\" alt=\"unsure.gif\" /] Ok, heres some of my code, i'm going to show you the code that effects the "sex field" as its a decent example to work with ; This part defines the radio buttons themselves (i figured this out myself, so there may be a better way) [code]<b>$your_sex:</b><br>\n         <input type=\"radio\" name=$your_sex value=\"male\">Male         <input type=\"radio\" name=$your_sex value=\"female\">Female <br><br>\n[/code] basically Html... i'm not sure about the "name" parameter to be honest, and think this whole post may turn out to be one problem after another.... i apoligise in advance. This next part is left over from when i had the "sex" field as a text input, but, now it's changed to radio buttons im not sure what, if anything i need to do with it; [code]$your_sex = "Your Sex"; $sex_empty = "You didn't fill in a sex, click <A HREF=\"javascript:history.go(-1)\">here</A> to go back."; [/code] This next part processes the form (or it will one day [img src=\"style_emoticons/[#EMO_DIR#]/wink.gif\" style=\"vertical-align:middle\" emoid=\":wink:\" border=\"0\" alt=\"wink.gif\" /] ): [code]$msg = "<font face=\"arial\" size=\"2\"><b>$your_sex:</b> $_POST[male]\n<br>";[/code] mail($recipent);[/code] Now, i have tried various things... including playing with if statement (im not very good at this) and ive had no success.... the best i manage to get is and e-mail title of "YOUR SEX = BLANK". I'm pretty sure i know what i need to do..... i need to get the form to recognise the radio buttons, and identify the one that is selected. Then i need to get the script to process the information and send it in the correct format. Problem is, i dont know how to do this, I'm gonna carry on tryin to get this figured out.... but any help in any shape or form (Except Flames) is greatly appreciated. I dont want you to do it for me.... i just need some help. Thankyou
×
×
  • 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.