john010117
Members-
Posts
492 -
Joined
-
Last visited
Never
Everything posted by john010117
-
We'll be able to help if you show us your code.
-
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.
-
Wrong section. But yes, saving the data in a database will be helpful. But try not to use cookies.
-
Like a guy said once (or in his sig) in this forum... ... or something to that effect.
-
Well, did you read anywhere that "target" is invalid?
-
Any advice on how to improve this homepage layout?
john010117 replied to calabiyau's topic in Website Critique
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. -
Problem with PHP and flash player? Frames?
john010117 replied to TheBigLebowski's topic in PHP Coding Help
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. -
[SOLVED] PHP errors for a flash based contact form
john010117 replied to speida's topic in PHP Coding Help
<?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(). -
[SOLVED] I can upload images in FF but not IE6 or IE7? WHY???
john010117 replied to cooldude832's topic in PHP Coding Help
Try using $_FILE. That's what I always used. -
What do you mean "it doesn't work"? Error messages? Blank pages? In which part does it not work?
-
[SOLVED] hey guys need register scipt tweaking
john010117 replied to runnerjp's topic in PHP Coding Help
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; } ?> -
[SOLVED] I can upload images in FF but not IE6 or IE7? WHY???
john010117 replied to cooldude832's topic in PHP Coding Help
What's the error message that you're getting in IE6/7? -
[SOLVED] simple mysql statement giving error.. can't figure it out.
john010117 replied to Dragen's topic in PHP Coding Help
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. -
[SOLVED] simple mysql statement giving error.. can't figure it out.
john010117 replied to Dragen's topic in PHP Coding Help
Try this: $sqlsel = "SELECT * FROM times WHERE day = '$day' AND group = '$group' AND start = '$start'"; I'm just throwing ideas around... -
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.
-
That would be helpful.
-
Trying to get a form to submit an email address to mysql database
john010117 replied to LuciBKen's topic in PHP Coding Help
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. -
Also, try putting in the full directory path(s).
-
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.
-
Trying to get a form to submit an email address to mysql database
john010117 replied to LuciBKen's topic in PHP Coding Help
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> -
date() and strtotime() might help.
-
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).
-
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).
-
Also, in the code that radar has posted, there's a missing / on the first comment.