john010117
-
Posts
492 -
Joined
-
Last visited
Never
Posts posted by john010117
-
-
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).
-
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.
-
-
Are you sure this is normal behavior? It's pretty stupid of MS to do this.
Like a guy said once (or in his sig) in this forum...
They were developing IE for a few years, but they still haven't got it right.... or something to that effect.
-
Well, did you read anywhere that "target" is invalid?
-
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.
-
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.
-
<?php $adminaddress = "[email protected]"; $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().
-
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?
-
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; } ?>
-
What's the error message that you're getting in IE6/7?
-
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.
-
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.
-
MAn you're a life saver. thanks a lot
One more question. When the user comes back t finish entering data I want him to start where he ended up last time. Do I need another field to remember the page if the status field says incomplete
That would be helpful.
-
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.
-
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.
-
We are experimenting AJAX feature for embedded contact forms. Feel free to test it out at : http://kontactr.com/ajax/contact.html
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).
-
-
Also, in the code that radar has posted, there's a missing / on the first comment.
[SOLVED] can insert, cannot validate
in PHP Coding Help
Posted
We'll be able to help if you show us your code.