Jump to content


  • Posts

  • Joined

  • Last visited


Everything posted by john010117

  1. We'll be able to help if you show us your code.
  2. Well, since you haven't posted any of your code, I could only suggest putting target="_self" (dunno if that's only for links, though).
  3. Very nice. I like the simplicity! Now for the technical parts... You do know that half the links on the nav bar doesn't work, right? The contact form is secure. You should maybe add a CAPTCHA to it.
  4. john010117

    any ideas

    Wrong section. But yes, saving the data in a database will be helpful. But try not to use cookies.
  5. Like a guy said once (or in his sig) in this forum... ... or something to that effect.
  6. Well, did you read anywhere that "target" is invalid?
  7. Pfft... Awardspace... Anyways, the design is pretty sleek. I suggest you size down the top part of the page to make the main content stick out more. Also, "chooseyourexistance.com" doesn't exist, yet it says that in the logo. I am glad that you've chosen CSS over HTML tables.
  8. From my previous experiences, the flash players gets quite annoying (especially if it has sounds) when it interferes with my music playing in the background while I'm surfing the web. But if you really want to do that, sorry, I don't have any other solutions for you.
  9. <?php $adminaddress = "info@gsxtreme.co.uk"; $siteaddress ="http://www.gsxtreme.co.uk"; $sitename = "GS Xtreme Sales LTD"; //No need to change anything below ... // Gets the date and time from your server $date = date("m/d/Y H:i:s"); // Gets the IP Address if ($REMOTE_ADDR == "") $ip = "no ip"; else $ip = getHostByAddr($REMOTE_ADDR); // Gets the POST Headers - the Flash variables $action = $_REQUEST['action'] ; $email = $_REQUEST['email'] ; $firstname = $_REQUEST['firstname'] ; $name = $_REQUEST['name'] ; $company = $_REQUEST['company'] ; $city = $_REQUEST['city'] ; $comments = $_REQUEST['comments'] ; //Process the form data! // and send the information collected in the Flash form to Your nominated email address if ($action == "send") { mail ("$adminaddress","Info Request", "A visitor at GS Xtreme Sales LTD website has left the following information\n Firstname: $firstname Email: $email\n The visitor, $firstname, commented: ------------------------------ $comments Logged Info : ------------------------------ Using: $HTTP_USER_AGENT Hostname: $ip IP address: $REMOTE_ADDR Date/Time: $date","FROM:$yourmailadress" ) ; //This sends a confirmation to your visitor mail ("$email","Thank You for visiting GS Xtreme Sales LTD", "Hello $firstname,\n Thank you for your interest in GS Xtreme Sales LTD!\n We will get back to you within 24 hours. Best Regards, GS Xtreme Sales Costumer Support.") ; } ?> You forgot the ending quotes in mail().
  10. What do you mean "it doesn't work"? Error messages? Blank pages? In which part does it not work?
  11. If you don't want your users to have to hassle to open up their e-mail program and look for the e-mail (which is most likely in the spam folder), I suggest you create a function like this to check if the e-mail address is in the correct format. <?php function check_email_address($email) { // First, we check that there's one @ symbol, and that the lengths are right if (!ereg("^[^@]{1,64}@[^@]{1,255}$", $email)) { // Email invalid because wrong number of characters in one section, or wrong number of @ symbols. return false; } // Split it into sections to make life easier $email_array = explode("@", $email); $local_array = explode(".", $email_array[0]); for ($i = 0; $i < sizeof($local_array); $i++) { if (!ereg("^(([A-Za-z0-9!#$%&'*+/=?^_`{|}~-][A-Za-z0-9!#$%&'*+/=?^_`{|}~\.-]{0,63})|(\"[^(\\|\")]{0,62}\"))$", $local_array[$i])) { return false; } } if (!ereg("^\[?[0-9\.]+\]?$", $email_array[1])) { // Check if domain is IP. If not, it should be valid domain name $domain_array = explode(".", $email_array[1]); if (sizeof($domain_array) < 2) { // Not enough parts to domain return false; } for ($i = 0; $i < sizeof($domain_array); $i++) { if (!ereg("^(([A-Za-z0-9][A-Za-z0-9-]{0,61}[A-Za-z0-9])|([A-Za-z0-9]+))$", $domain_array[$i])) { return false; } } } return true; } ?>
  12. Backticks sometimes solved my problems. $sqlsel = "SELECT * FROM `times` WHERE day = '$day' AND group = '$group' AND start = '$start'"; Make sure you've defined every variable that's in the query.
  13. Try this: $sqlsel = "SELECT * FROM times WHERE day = '$day' AND group = '$group' AND start = '$start'"; I'm just throwing ideas around...
  14. Tone down the colors a bit. But fortunately for you, I mustered up the courage to navigate around the site. Your "special offers" page is blank. I've just sent a blank e-mail using the contact form. You can do better than that! Oh god. I'm now half blind.
  15. Also, don't put spaces between the equal sign and the values. NOT: <form method = "post" action = "insert.php"> but this: <form method="post" action="insert.php"> Remove the spaces for all the HTML tags.
  16. Also, try putting in the full directory path(s).
  17. Also, you should check that the subject and the body is filled out (by using the empty() function). I've just sent an e-mail having just the e-mail and the security code.
  18. You didn't specify where the form should send the data to. <html> <head> <title>Email Submission Page</title> </head> <body> <form method="post" action="config.php"> Please enter a valid email address <input type = "text" name = "email" value = ""> <input type = "submit" name = "submit" value = "$_post" </form> <? include insert.php ?> </body> </html>
  19. date() and strtotime() might help.
  20. The only thing I see wrong with that is that there is no back link when you type in the wrong security code. I can't go back, even with Firefox's back button (it's disabled).
  21. So you're looking for a PHP editor to install on your comp? Notepad 2 and Notepad++ are the open source ones (free for life).
  22. Also, in the code that radar has posted, there's a missing / on the first comment.
  • 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.