Jump to content

utdfederation

Members
  • Posts

    23
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

utdfederation's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. hi all, i have a script that im trying to add the @ sign after the date. code: <td align='left' class='forumheader3' nowrap>".(($wardate == -1) ? "" : date($conf['formatdetails'], $wardate))."</td> resulting in this: 1 Apr 2012 21:30 but i am trying to get the @ after the date so the result would be this: 1 Apr 2012 @ 21:30 any help please
  2. could you explain how you mean please as i am new to coding. what code should i be using?
  3. this is the code, im sure i have it wrong. <tr><td>"._DOB.": </td><td><select name ='day' value='$day'> <option value=''></option> <option value='1'>1</option> <option value='2'>2</option> <option value='3'>3</option> <option value='4'>4</option> <option value='5'>5</option> <option value='6'>6</option> <option value='7'>7</option> <option value='8'>8</option> <option value='9'>9</option> <option value='10'>10</option> <option value='11'>11</option> <option value='12'>12</option> <option value='13'>13</option> <option value='14'>14</option> <option value='15'>15</option> <option value='16'>16</option> <option value='17'>17</option> <option value='18'>18</option> <option value='19'>19</option> <option value='20'>20</option> <option value='21'>21</option> <option value='22'>22</option> <option value='23'>23</option> <option value='24'>24</option> <option value='25'>25</option> <option value='26'>26</option> <option value='27'>27</option> <option value='28'>28</option> <option value='29'>29</option> <option value='30'>30</option> <option value='31'>31</option> </select> : <select name ='month' value='$month'> <option value=''></option> <option value='Jan'>Jan</option> <option value='Feb'>Feb</option> <option value='Mar'>Mar</option> <option value='Apr'>Apr</option> <option value='May'>May</option> <option value='June'>June</option> <option value='July'>July</option> <option value='Aug'>Aug</option> <option value='Sept'>Sept</option> <option value='Oct'>Oct</option> <option value='Nov'>Nov</option> <option value='Dec'>Dec</option> </select> : <select name ='year' value='$year'> <option value=''></option> <option value='1930'>1930</option> <option value='1931'>1931</option> <option value='1932'>1932</option> <option value='1933'>1933</option> <option value='1934'>1934</option> <option value='1935'>1935</option> <option value='1936'>1936</option> <option value='1937'>1937</option> <option value='1938'>1938</option> <option value='1939'>1939</option> <option value='1940'>1940</option> <option value='1941'>1941</option> <option value='1942'>1942</option> <option value='1943'>1943</option> <option value='1944'>1944</option> <option value='1945'>1945</option> <option value='1946'>1946</option> <option value='1947'>1947</option> <option value='1948'>1948</option> <option value='1949'>1949</option> <option value='1950'>1950</option> <option value='1951'>1951</option> <option value='1952'>1952</option> <option value='1953'>1953</option> <option value='1954'>1954</option> <option value='1955'>1955</option> <option value='1956'>1956</option> <option value='1957'>1957</option> <option value='1958'>1958</option> <option value='1959'>1959</option> <option value='1960'>1960</option> <option value='1961'>1961</option> <option value='1962'>1962</option> <option value='1963'>1963</option> <option value='1964'>1964</option> <option value='1965'>1965</option> <option value='1966'>1966</option> <option value='1967'>1967</option> <option value='1968'>1968</option> <option value='1969'>1969</option> <option value='1970'>1970</option> <option value='1971'>1971</option> <option value='1972'>1972</option> <option value='1973'>1973</option> <option value='1974'>1974</option> <option value='1975'>1975</option> <option value='1976'>1976</option> <option value='1977'>1977</option> <option value='1978'>1978</option> <option value='1979'>1979</option> <option value='1980'>1980</option> <option value='1981'>1981</option> <option value='1982'>1982</option> <option value='1983'>1983</option> <option value='1984'>1984</option> <option value='1985'>1985</option> <option value='1986'>1986</option> <option value='1987'>1987</option> <option value='1988'>1988</option> <option value='1989'>1989</option> <option value='1990'>1990</option> <option value='1991'>1991</option> <option value='1992'>1992</option> <option value='1993'>1993</option> <option value='1994'>1994</option> <option value='1995'>1995</option> <option value='1996'>1996</option> <option value='1997'>1997</option> <option value='1998'>1998</option> <option value='1999'>1999</option> <option value='2000'>2000</option> <option value='2001'>2001</option> <option value='2002'>2002</option> <option value='2003'>2003</option> <option value='2004'>2004</option> <option value='2005'>2005</option> <option value='2006'>2006</option> <option value='2007'>2007</option> <option value='2008'>2008</option> <option value='2009'>2009</option> <option value='2010'>2010</option> <option value='2011'>2011</option> <option value='2012'>2012</option> </select></td></tr> i am using the e107 cms and i have entered this into the page that allows the user to register to become a member.
  4. hello fellas, need some help please if possible. i have created a date of birth section in my form where the user selects his/her date of birth from the dropdown menu. they would first select the day then month then year of their birthday. how would i setup the database to get this to work? i currently have: day VARCHAR( 2 ) NOT NULL , month VARCHAR( 4 ) NOT NULL , year VARCHAR( 4 ) NOT NULL , is this correct? many thanks
  5. hello guys i was wondering is there a way to help my website load a bit faster? what i mean by this is when you click on the homepage on the site i have created it takes forever to load,all the gifs load and the page loads in bits at a time. sorry i haven't uploaded it to the main server yet but i was hoping someone could lend a hand on this before i upload it. many thanks guys UTD update here is the homepage http://www.bravosquadgaming.com/
  6. hello again all. ok lets say on 1 line i wanted to type to be displayed in php "hello and thank you for visiting my site" but every word be a different color how would one go about scripting this? this would need to be 1 line of text. example/ hello (red) and (green) thank you (blue) for (white) visiting (black) my (grey) site (yellow) hope you follow what i mean
  7. point taken i will be getting on it my friend as soon as i finish this. full code: <?php if ($_POST && isset($missing)) { ?> <span class="warning style2"><strong>Please complete the missing item(s) indicated.</strong></span> <p> <?php } elseif ($_POST && !$mailSent) { ?> <span class="warning style2"><strong>Sorry, there was a problem sending your message. Please try later.</strong></span> <p> <?php } elseif ($_POST && $mailSent) { ?> <span class="warning style1"><em><strong>Thank You...Your message has been Successfully sent.</strong></em></span> <p> <?php } ?> </p> <form id="feedback" method="post" action=""> <label for="whoto"><span class="style4">Choose Admin :</span> <?php if (isset($missing) && in_array('whoto', $missing)) { ?> <span class="style2 warning"><strong>Select Your Contact!!</strong></span> <?php } ?> <br> </label> <select name="whoto" size="1" id="whoto"><?php if (isset($missing)) { echo 'value="'.htmlentities($_POST['whoto']).'"';} ?> <option></option> <option value="your@email.com">contact1</option> <option value="your@email.com">contact2</option> <option value="your@email.com">contact3</option> <option value="your@email.com">contact4</option> <option value="your@email.com">contact5</option> </select> </p> <p> <label for="name"><span class="style4">Your Name :</span> <?php if (isset($missing) && in_array('name', $missing)) { ?> <span class="warning style3">Enter Your Name!!</span> <?php } ?> <br> </label> <input name="name" id="name" type="text" class="formbox" <?php if (isset($missing)) { echo 'value="'.htmlentities($_POST['name']).'"';} ?> /> </p> <p> <label for="email"><span class="style4">Your E-mail :</span> <?php if (isset($missing) && in_array('email', $missing)) { ?> <span class="warning style3">Enter Your E-mail Address!!</span> <?php } ?> <br> </label> <input name="email" id="email" type="text" class="formbox" <?php if (isset($missing)) { echo 'value="'.htmlentities($_POST['email']).'"';} ?> /> </p> <p> <label for="subject"><span class="style4">Your Subject :</span> <?php if (isset($missing) && in_array('subject', $missing)) { ?> <span class="warning style3">Enter Your Subject!!</span> <?php } ?> <br> </label> <input name="subject" id="subject" type="text" class="formbox" <?php if (isset($missing)) { echo 'value="'.htmlentities($_POST['subject']).'"';} ?> /> </p> <p> <label for="message"><span class="style5">Your Message :</span> <span class="style3"> <?php if (isset($missing) && in_array('message', $missing)) { ?> Enter Your Message!! <?php } ?> </span> <br> </label> <textarea name="message" id="message" cols="60" rows="8"><?php if (isset($missing)) { echo htmlentities($_POST['comments']); } ?></textarea> </p> <p> <input name="send" id="send" type="submit" value="Send E-Mail" class="button" /> </p> </form> </div>
  8. magical what should i do to rectify it then please kind sir? please be assured i am not brown nosing here....alright then i am. if you can understand i have no clue when it comes to php,just going through different scripts trying to get ones head around it all. i do start classes september 15th and i can't wait to learn this,but in the meantime i do appreciate it.
  9. ok i have itall working now and it sends mail to my email account which is fantastic guys i really do appreciate all your help on this matter i really do thank you all kindly. HOWEVER.......LOL 1 last thing still remains...which i know you will know.i've been trying to correct it for the past 2 hours now with no luck..dang. ok here goes from the screen shots below you will be able to judge it better: the first picture is when i just click on the send button. this one is after i fill out part of the form. and this is after success. here is the code in question. <?php if (isset($missing)) { echo 'value="'.htmlentities($_POST['name']).'"';} ?> one other thing when filling out the form,when i get to the message section and type something and not fill anyother part of the form out why does the text disapear from the messagebox when i click on another box to fill in? many many thanks guys for all your help so far.
  10. would this be it? // create additional headers $additionalHeaders = 'From: WebContact'; if (!empty($email)) { $additionalHeaders .= "\r\nReply-To: $email"; }
  11. ok what i've done is stripped the code down so you guys can see correctly (mean no insult here) right...ok the server i have created a folder named:contact3 inside that folder i have the following: 1) contact.php (which contains) <?php include('contact3/formprocess.php'); ?> <!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"> <head> <title>Contact</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body> <div id="form-wrap"> <div id="form-area"> <form name="form1" method="post" action=""> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="40%"> </td> <td width="60%"> <?php if ($_POST && isset($missing)) {?> <span class="style9 warning"><em>Please complete the missing item(s) indicated.</em></span></td> </tr> <tr> <td> </td> <td><?php } elseif ($_POST && !$mailSent)) {?> <span class="style9 warning"><em>Sorry, there was a problem sending your message. Please try later.</em></span></td> </tr> <tr> <td> </td> <td><?php } elseif ($_POST && $mailSent)) {?> <span class="style34">Thank You. </span></td> </tr> <tr> <td> </td> <td><span class="style34">Your message has been Successfully sent.</span></td> </tr> <tr> <td> </td> <td> </td> </tr> <tr> <td><div align="right"></div></td> <td><?php if (isset($missing) && in_array('whoto', $missing)) { ?> <span class="warning style9"><em>Please Choose Contact !!</em></span> <?php } ?></td> </tr> <tr> <td><div align="right"><span class="style29">* </span><span class="style19">Choose Contact :</span></div></td> <td><div align="left"> <select name="whoto" size="1" id="whoto"> <option>PLEASE SELECT CONTACT !!</option> <!--------- INSERT APPROPRIATE EMAIL ADDRESS FOR EACH CONTACT ----------> <option value="admin@bravosquadgaming.com">contact1</option> <option value="your@email.com">contact2</option> <option value="your@email.com">contact3</option> <option value="your@email.com">contact4</option> <option value="your@email.com">contact5</option> </select><?php if (isset($missing)) { echo 'value="'.htmlentities($_POST['whoto']).'"';} ?> </div></td> </tr> <tr> <td><div align="right"></div></td> <td> </td> </tr> <tr> <td><div align="right"></div></td> <td><?php if (isset($missing) && in_array('name', $missing)) { ?> <span class="warning style9"><em>Please Enter Your name !!</em></span> <?php } ?></td> </tr> <tr> <td><div align="right"><span class="style29">* </span> <span class="style19">Your Name :</span></div></td> <td><input name="name" type="text" id="name" size="40" maxlength="90" /> <?php if (isset($missing)) { echo 'value="'.htmlentities($_POST['name']).'"';} ?></td> </tr> <tr> <td><div align="right"></div></td> <td> </td> </tr> <tr> <td><div align="right"></div></td> <td><?php if (isset($missing) && in_array('email', $missing)) { ?> <span class="warning style9"><strong><em>Please Enter Your E-mail !!</em></strong></span> <?php } ?></td> </tr> <tr> <td><div align="right"><span class="style27">* </span> <span class="style19">Your E-mail :</span></div></td> <td><input name="email" type="text" id="email" size="40" maxlength="90" /> <?php if (isset($missing)) { echo 'value="'.htmlentities($_POST['email']).'"';} ?></td> </tr> <tr> <td><div align="right"></div></td> <td> </td> </tr> <tr> <td><div align="right"></div></td> <td><?php if (isset($missing) && in_array('subject', $missing)) { ?> <span class="warning style9"><strong><em>Please Enter Your Subject !!</em></strong></span> <?php } ?></td> </tr> <tr> <td><div align="right"><span class="style27">*</span> <span class="style19">Your Subject :</span></div></td> <td><input name="subject" type="text" id="subject" size="40" maxlength="90" /> <?php if (isset($missing)) { echo 'value="'.htmlentities($_POST['subject']).'"';} ?></td> </tr> <tr> <td><div align="right"></div></td> <td> </td> </tr> <tr> <td valign="top"><div align="right"></div></td> <td><?php if (isset($missing) && in_array('comments', $missing)) { ?> <span class="warning style9"><strong><em>Please Enter Your Message !!</em></strong></span> <?php } ?></td> </tr> <tr> <td valign="top"><div align="right"><span class="style25">*</span> <span class="style19">Your Message :</span></div> </td> <td><textarea name="comments" cols="60" rows="8" id="comments"> <?php if (isset($missing)) { echo 'value="'.htmlentities($_POST['comments']).'"';} ?></textarea></td> </tr> <tr> <td valign="top"><div align="right"></div></td> <td> </td> </tr> <tr> <td><div align="right"><span class="style19">Verification Code :</span></div></td> <td><img src="http://www.phpjabbers.com/contact-form/try/captcha.php" align="middle" /></td> </tr> <tr> <td><div align="right"></div></td> <td> </td> </tr> <tr> <td><div align="right"><span class="style25">*</span> <span class="style19">Type Verification Code :</span></div></td> <td><input name="vercode" type="text" id="vercode" value="" size="10" /><?php if (isset($missing)) { echo 'value="'.htmlentities($_POST['name']).'"';} ?> <?php if (isset($missing) && in_array('vercode', $missing)) { ?> <span class="warning style9"><strong><em>Please Enter Correct Code!!</em></strong></span> <?php } ?></td> </tr> <tr> <td><div align="right"></div></td> <td valign="middle"> </td> </tr> <tr> <td> </td> <td><input type="submit" name="submit2" id="submit" value="Send E-mail" /> <input type="hidden" name="submitted" value="TRUE" /></td> </tr> </table> </form> </div> </div> </body> </html> 2) formprocess.php (which contains) <?php include('includes/corefuncs.php'); if (function_exists('nukeMagicQuotes')) { nukeMagicQuotes(); } // process the email if (array_key_exists('send', $_POST)) { $whoto = $_POST['whoto']; $sub = 'WebContact'; // list expected fields $expected = array('whoto', 'name', 'email', 'subject', 'comments', 'vercode'); // set required fields $required = array('whoto', 'name', 'email', 'subject', 'comments', 'vercode'); // create empty array for any missing fields $missing = array(); // assume that there is nothing suspect $suspect = false; // create a pattern to locate suspect phrases $pattern = '/Content-Type:|Bcc:|Cc:/i'; // function to check for suspect phrases function isSuspect($val, $pattern, &$suspect) { // if the variable is an array, loop through each element // and pass it recursively back to the same function if (is_array($val)) { foreach ($val as $item) { isSuspect($item, $pattern, $suspect); } } else { // if one of the suspect phrases is found, set Boolean to true if (preg_match($pattern, $val)) { $suspect = true; } } } // check the $_POST array and any sub-arrays for suspect content isSuspect($_POST, $pattern, $suspect); if ($suspect) { $mailSent = false; unset($missing); } else { // process the $_POST variables foreach ($_POST as $key => $value) { // assign to temporary variable and strip whitespace if not an array $temp = is_array($value) ? $value : trim($value); // if empty and required, add to $missing array if (empty($temp) && in_array($key, $required)) { array_push($missing, $key); } // otherwise, assign to a variable of the same name as $key elseif (in_array($key, $expected)) { ${$key} = $temp; } } } // validate the email address if (!empty($email)) { // regex to ensure no illegal characters in email address $checkEmail = '/^[^@]+@[^\s\r\n\'";,@%]+$/'; // reject the email address if it doesn't match if (!preg_match($checkEmail, $email)) { array_push($missing, 'email'); } } // go ahead only if not suspect and all required fields OK if (!$suspect && empty($missing)) { // build the message $msg = "Name: $name\n\n"; $msg .= "Email: $email\n\n"; $msg .= "Comments: $comments"; // limit line length to 70 characters $msg = wordwrap($msg, 70); // create additional headers $additionalHeaders = 'From: WebContact'; if (!empty($email)) { $additionalHeaders .= "\r\nReply-To: $email"; } // send it $mailSent = mail($whoto, $sub, $msg, $additionalHeaders); if ($mailSent) { // $missing is no longer needed if the email is sent, so unset it unset($missing); } } } ?> 3) folder named :includes inside that i have: corefuncs.php (which contains) <?php function nukeMagicQuotes() { if (get_magic_quotes_gpc()) { function stripslashes_deep($value) { $value = is_array($value) ? array_map('stripslashes_deep', $value) : stripslashes($value); return $value; } $_POST = array_map('stripslashes_deep', $_POST); $_GET = array_map('stripslashes_deep', $_GET); $_COOKIE = array_map('stripslashes_deep', $_COOKIE); } } ?> i did what you said (i think) but still not showing..the page just says "the page cannot be displayed" http 500 internal server error any suggestions? sorry about this guys
  12. after i input that i still get a "page cannot be displayed" error
  13. i was wondering if someone could share their wisdom on this script for me please as it is not working at all? i think i have messed it up big time. would appreciate any help at this point please guys n girls. the problem im having is when i upload it to the server and click on the link to launch it i get a 404 error,like i said i think i have messed it up . many thanks in advance. contact.php <?php // process the email if (array_key_exists('send', $_POST)) { $whoto = $_POST['whoto']; $sub = 'WebContact'; // list expected fields $expected = array('whoto', 'name', 'email', 'subject', 'comments', 'vercode'); // set required fields $required = array('whoto', 'name', 'email', 'subject', 'comments', 'vercode'); // create empty array for any missing fields $missing = array(); // assume that there is nothing suspect $suspect = false; // create a pattern to locate suspect phrases $pattern = '/Content-Type:|Bcc:|Cc:/i'; // function to check for suspect phrases function isSuspect($val, $pattern, &$suspect) { // if the variable is an array, loop through each element // and pass it recursively back to the same function if (is_array($val)) { foreach ($val as $item) { isSuspect($item, $pattern, $suspect); } } else { // if one of the suspect phrases is found, set Boolean to true if (preg_match($pattern, $val)) { $suspect = true; } } } // check the $_POST array and any sub-arrays for suspect content isSuspect($_POST, $pattern, $suspect); if ($suspect) { $mailSent = false; unset($missing); } else { // process the $_POST variables foreach ($_POST as $key => $value) { // assign to temporary variable and strip whitespace if not an array $temp = is_array($value) ? $value : trim($value); // if empty and required, add to $missing array if (empty($temp) && in_array($key, $required)) { array_push($missing, $key); } // otherwise, assign to a variable of the same name as $key elseif (in_array($key, $expected)) { ${$key} = $temp; } } } // validate the email address if (!empty($email)) { // regex to ensure no illegal characters in email address $checkEmail = '/^[^@]+@[^\s\r\n\'";,@%]+$/'; // reject the email address if it doesn't match if (!preg_match($checkEmail, $email)) { array_push($missing, 'email'); } } // go ahead only if not suspect and all required fields OK if (!$suspect && empty($missing)) { // build the message $msg = "Name: $name\n\n"; $msg .= "Email: $email\n\n"; $msg .= "Comments: $comments"; // limit line length to 70 characters $msg = wordwrap($msg, 70); // create additional headers $additionalHeaders = ''; if (!empty($email)) { $additionalHeaders .= "\r\nReply-To: $email"; } // send it $mailSent = mail($whoto, $sub, $msg, $additionalHeaders); if ($mailSent) { // $missing is no longer needed if the email is sent, so unset it unset($missing); } } } ?> <!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"> <head> <title>Contact</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </script> <!-- End Preload Script --> <style type="text/css"> <!-- body { background-color: #ffffff; } .style9 { color: #f00; font-weight: bold; font-size: 85%; text-align: left; text-indent: 3px; } #name { font-family: Georgia, "Times New Roman", Times, serif; font-size: 12px; border-top-width: thin; border-right-width: thin; border-bottom-width: thin; border-left-width: thin; border-top-style: inset; border-right-style: inset; border-bottom-style: inset; border-left-style: inset; } #email { font-family: Georgia, "Times New Roman", Times, serif; font-size: 12px; border-top-width: thin; border-right-width: thin; border-bottom-width: thin; border-left-width: thin; border-top-style: inset; border-right-style: inset; border-bottom-style: inset; border-left-style: inset; } .style19 {color: #CCCCCC; font-weight: bold; font-style: italic; } #subject { font-family: Georgia, "Times New Roman", Times, serif; font-size: 12px; border-top-width: thin; border-right-width: thin; border-bottom-width: thin; border-left-width: thin; border-top-style: inset; border-right-style: inset; border-bottom-style: inset; border-left-style: inset; } #comments { font-family: Georgia, "Times New Roman", Times, serif; font-size: 12px; border-top-width: thin; border-right-width: thin; border-bottom-width: thin; border-left-width: thin; border-top-style: inset; border-right-style: inset; border-bottom-style: inset; border-left-style: inset; } .style25 {color: #f00; font-weight: bold; font-style: italic; } .style27 {color: #FF0000; font-weight: bold; font-style: italic; } #submit{ font-family: Georgia, "Times New Roman", Times, serif; font-size: 12px; font-weight: bold; width: 100px; border: thin solid #FFFFFF; font-style: italic; height: 25px; } .style29 {color: #f00; font-weight: bold; font-size: 85%; font-style: italic; } #whoto { font-size: 12px; font-weight: bold; font-family: Georgia, "Times New Roman", Times, serif; font-style: oblique; border-top-width: thin; border-right-width: thin; border-bottom-width: thin; border-left-width: thin; border-top-style: inset; border-right-style: inset; border-bottom-style: inset; border-left-style: inset; } .style34 { font-size: 85%; font-style: italic; font-weight: bold; color: #33FF00; text-align: left; text-indent: 3px; } #vercode { font-family: Georgia, "Times New Roman", Times, serif; font-size: 12px; border-top-width: thin; border-right-width: thin; border-bottom-width: thin; border-left-width: thin; border-top-style: inset; border-right-style: inset; border-bottom-style: inset; border-left-style: inset; } --> </style> </head> <body> <form name="form1" method="post" action=""> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="37%"> </td> <td width="63%"> <?php if ($_POST && isset($missing)) { ?> <span class="style9 warning"><em>Please complete the missing item(s) indicated.</em></span></td> </tr> <tr> <td> </td> <td><?php } elseif ($_POST && !$mailSent) { ?> <span class="style9 warning"><em>Sorry, there was a problem sending your message. Please try later.</em></span></td> </tr> <tr> <td> </td> <td><?php } elseif ($_POST && $mailSent) { ?> <span class="style34">Thank You. </span></td> </tr> <tr> <td> </td> <td><span class="style34">Your message has been Successfully sent.</span></td> </tr> <tr> <td> </td> <td> </td> </tr> <tr> <td><div align="right"></div></td> <td><?php if (isset($missing) && in_array('whoto', $missing)) { ?> <span class="warning style9"><em>Please Choose Contact !!</em></span> <?php } ?></td> </tr> <tr> <td><div align="right"><span class="style29">* </span><span class="style19">Choose Contact :</span></div></td> <td><div align="left"> <select name="whoto" size="1" id="whoto"> <option>PLEASE SELECT ADMIN !!</option> <!--------- INSERT APPROPRIATE EMAIL ADDRESS FOR EACH CONTACT ----------> <option value="your@email.com">contact1</option> <option value="your@email.com">contact2</option> <option value="your@email.com">contact3</option> <option value="your@email.com">contact4</option> <option value="your@email.com">contact5</option> </select><?php if (isset($missing)) { echo 'value="'.htmlentities($_POST['whoto']).'"';} ?> </div></td> </tr> <tr> <td><div align="right"></div></td> <td> </td> </tr> <tr> <td><div align="right"></div></td> <td><?php if (isset($missing) && in_array('name', $missing)) { ?> <span class="warning style9"><em>Please Enter Your name !!</em></span> <?php } ?></td> </tr> <tr> <td><div align="right"><span class="style29">* </span> <span class="style19">Your Name :</span></div></td> <td><input name="name" type="text" id="name" size="40" maxlength="90" /> <?php if (isset($missing)) { echo 'value="'.htmlentities($_POST['name']).'"';} ?></td> </tr> <tr> <td><div align="right"></div></td> <td> </td> </tr> <tr> <td><div align="right"></div></td> <td><?php if (isset($missing) && in_array('email', $missing)) { ?> <span class="warning style9"><strong><em>Please Enter Your E-mail !!</em></strong></span> <?php } ?></td> </tr> <tr> <td><div align="right"><span class="style27">* </span> <span class="style19">Your E-mail :</span></div></td> <td><input name="email" type="text" id="email" size="40" maxlength="90" /> <?php if (isset($missing)) { echo 'value="'.htmlentities($_POST['email']).'"';} ?></td> </tr> <tr> <td><div align="right"></div></td> <td> </td> </tr> <tr> <td><div align="right"></div></td> <td><?php if (isset($missing) && in_array('subject', $missing)) { ?> <span class="warning style9"><strong><em>Please Enter Your Subject !!</em></strong></span> <?php } ?></td> </tr> <tr> <td><div align="right"><span class="style27">*</span> <span class="style19">Your Subject :</span></div></td> <td><input name="subject" type="text" id="subject" size="40" maxlength="90" /> <?php if (isset($missing)) { echo 'value="'.htmlentities($_POST['subject']).'"';} ?></td> </tr> <tr> <td><div align="right"></div></td> <td> </td> </tr> <tr> <td valign="top"><div align="right"></div></td> <td><?php if (isset($missing) && in_array('comments', $missing)) { ?> <span class="warning style9"><strong><em>Please Enter Your Message !!</em></strong></span> <?php } ?></td> </tr> <tr> <td valign="top"><div align="right"><span class="style25">*</span> <span class="style19">Your Message :</span></div> </td> <td><textarea name="comments" cols="60" rows="8" id="comments"> <?php if (isset($missing)) { echo 'value="'.htmlentities($_POST['comments']).'"';} ?></textarea></td> </tr> <tr> <td valign="top"><div align="right"></div></td> <td> </td> </tr> <tr> <td><div align="right"><span class="style19">Verification Code :</span></div></td> <td><img src="http://www.phpjabbers.com/contact-form/try/captcha.php" align="middle" /></td> </tr> <tr> <td><div align="right"></div></td> <td> </td> </tr> <tr> <td><div align="right"><span class="style25">*</span> <span class="style19">Type Verification Code :</span></div></td> <td><input name="vercode" type="text" id="vercode" value="" size="10" /><?php if (isset($missing)) { echo 'value="'.htmlentities($_POST['name']).'"';} ?> <?php if (isset($missing) && in_array('vercode', $missing)) { ?> <span class="warning style9"><strong><em>Please Enter Correct Code!!</em></strong></span> <?php } ?></td> </tr> <tr> <td><div align="right"></div></td> <td valign="middle"> </td> </tr> <tr> <td> </td> <td><input type="submit" name="submit2" id="submit" value="Send E-mail" /> <input type="hidden" name="submitted" value="TRUE" /></td> </tr> </table> </form> </body> </html>
  14. i know i know like i said i appreciate your experience on helping an old man out. however i am having a problem and this is the final part now. when i upload the file onto my server and try it out the drop-down box does not show at all so the user is unable to selct a contact. any suggestions on why this is the case? when you first launch the page you can see it for a split second then it's gone. here is the link where it is at the moment. http://www.oldburyparkwhitetigers.co.uk/contact/index.php would it be easier for you to contact me on xfire? if so my id is utdfederation would appreciate anything you can do to help solw this last part even pay for it
×
×
  • 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.