Philip
Staff Alumni-
Posts
4,665 -
Joined
-
Last visited
-
Days Won
20
Everything posted by Philip
-
I don't like the colors of the news titles (green, red, blue) If you are going to use those color families, find one that flows nicely with the design. Example: a darker green that might match the grass, with a gray or white font. iFrames? Why? If you are using PHP, use include. To me, it seems a lot nicer. Just use some styles on it. Thats just my thought. http://darkages.chroniclesofnomadica.com/Members/forgotpass.php needs styles http://darkages.chroniclesofnomadica.com/about.php not a fan of the dividers http://chroniclesofnomadica.com/membership/register.php whats up with this? All in all, I really like the frontpage (which is probably the only one I'm supposed to do a critique on, lol) It looks good, keep it up :D
-
I don't like how the homepage is one set width, and the rest go to 100% width. I think it should stay at the set width.
-
Yeah, a lot of what jcombs said is true. The green in the "fun stuff" box is really way too bright. I think you need a footer on the bottom to tie things in. The "sign" link for the guestbook is in a really bad spot (messes up in FF2.0.0.1)
-
Yeah, I have to agree theres too much gray. What about in the menu (Our Products - F.A.Q. - Forums - Browse Scripts - Privacy Policy - Make Money Now - About Us), when you hover over a button the box next to it gets the red?
-
PHPFreaks Forum Upgrade Complete
Philip replied to steelmanronald06's topic in PHPFreaks.com Website Feedback
Cool, I see my suggestion was taken ;) Looks nice. -
I thought this was funny on the ASP vs PHP debate. I was walking through Fry's (a big tech store) and they had 4 or 5 racks of bargain books. There had to have been at least 20-25 books on ASP, and not a single bargain book on PHP :P
-
It is on windows XP home, its under accessories. I don't think it can do the "Green screen" effect though. :(
-
Make sure you have it set for 32 characters in the db :) Try adding echo $sql; after the sql statement if you have it set as 32 (or higher) varchar in the column info
-
Also, http://tomas.epineer.se/archives/3
-
Yup. Makes me sad too :(
-
PHP short tags - code highlighting
Philip replied to redbullmarky's topic in PHPFreaks.com Website Feedback
Well, I agree with you. I was a little confused on why they wouldn't highlight the short tags when I first started posting here. I wouldn't mind seeing this happen, since it would make things easier to read. And I know there are going to be a few people saying don't use short tags blah blah... ([url=http://www.corephp.co.uk/archives/19-Prepare-for-PHP-6.html]They are still going to be in php6... so hush.[/url]) ;) -
try putting this right below //Validate DOB [code]<?php //don't put the opening and closing php tags, they are there to highlight the code in this box echo $_POST['month'] . "<br />"; echo $_POST['days'] . "<br />"; echo $_POST['year']; ?>[/code] and see what you get
-
[code]<?php if(isset($_POST['submit'])) { $to = "moisea@yahoo.com, moise_tavares@yahoo.com"; $subject = $_POST['subject']; $name_field = $_POST['name']; $email_field = $_POST['email']; $message = $_POST['message']; $body = "$message"; $continue = "/"; // homepage or "mypage.htm" or "http://www.elsewhere.com/page.htm" // email validation $error_msg=''; if(trim($name)=='') { $error_msg.="Please enter your Name and/or Surname !<br>"; } if(trim($subject)=='') { $error_msg.="Please enter a subject title !<br>"; } if(trim($email_input)=='') { $error_msg.="Please enter an email<br>"; } else { // check if email is a valid address in this format username@domain.com if(!ereg("[0-9a-z]([-_.]?[0-9a-z])*@[0-9a-z]([-.]?[0-9a-z])*\\.[a-z]", $email_input)) { $error_msg.="Please enter a valid email address<br>"; } // display error message if any, if not, proceed to other processing if($error_msg==''){ // other process here } else { echo "<font color=red>$error_msg</font>"; } } mail($to, $subject, $body); } else { echo "OH NOOOO!"; } ?> <!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> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> </head> <body> <div id="contact-message"> <!--Thank you <b><?php $name_field ?></b> <br>Your message has been sent to <b><?php $to ?></b> <p><a href="<?php print $continue; ?>">Click here to continue</a></p> --> <?php echo "Thanks <b>$name_field</b>, Your message has been submitted to <b>$to</b>!"; ?> <p><a href="<?php print $continue; ?>">Click here to continue</a></p> </div> </body> </html>[/code] You were missing 2 sets of ) (one was mentioned above) and you had a missing { on an if statement
-
What does the form processing side look like? I didn't see anything wrong with this side of the form. :)
-
$tempvar = @mysql_num_rows($execute); should be $tempvar = @mysql_num_rows($query); This is because your query variable is "query" not "execute" And personally, I don't think you should use the @ sign, it really helps in debugging. If you are able to completely debug your code, you shouldn't have to worry about these errors showing up anywhere ;)
-
Read into this: http://www.raditha.com/php/progress.php I've also tried finding a PHP progress bar, but after reading that I found its nearly impossible.
-
and the fact that its down right now ;)
-
Time limit on editing posts on this forum
Philip replied to neylitalo's topic in PHPFreaks.com Website Feedback
Yeah, whoops. I forgot to mention it worked ;) I like it. :) -
Time limit on editing posts on this forum
Philip replied to neylitalo's topic in PHPFreaks.com Website Feedback
Still not seeing it? Let me check... Still green... :( Nope, cleared cache. lol, I know what you mean, I jsut thought it was weird that something green flashed up top, then I loaded up my connection with other tabs and such, and saw "Loading..." I like that better. Thanks :) -
Time limit on editing posts on this forum
Philip replied to neylitalo's topic in PHPFreaks.com Website Feedback
Thanks. :) -
Time limit on editing posts on this forum
Philip replied to neylitalo's topic in PHPFreaks.com Website Feedback
There is a little button off on the right side for quick edit. It flashes a loading screen on it. One sec, I can get a screenshot. [img]http://img254.imageshack.us/img254/5643/quickeditjh7.jpg[/img] -
Yeah, Yahoo has one, and they pay quite well. However, like stated above, if you outside the U.S. or have a decent amount of traffic coming in from outside the U.S. you're pretty much S.O.L. (And they take a long time to get back in contact with)
-
Time limit on editing posts on this forum
Philip replied to neylitalo's topic in PHPFreaks.com Website Feedback
Time limit changed! At least on the PHP help forum .... 3 minutes so far. Oh well. Guess I'm a nerd for figuring that out. And that quick edit color is one nasty green for this forum. Should be like a blue of some kind. -
Getting the line number (not the ++ approach)
Philip replied to ted_chou12's topic in PHP Coding Help
You could put the __LINE__ in the fatal_error(); [code]<?php <? function fatal_error($line, $string){ $string = 'You have an Error on line #'.$line.'<br><pre>'.highlight_string($string); if(mysql_errno()!=0) $string.= '<hr>'.mysql_errno().': '.mysql_error().'<hr>'; $string .= '</pre>'; die("Fatal Error: $string"); } fatal_error(__LINE__, $error_string); ?>[/code] -
<form method='POST' action='echo $_POST[PHP_SELF]'> Should be <form method='POST' action='".$_POST[PHP_SELF]."'>