I had this problem that I ended up tracing back to a problem with the form itself before I even posted the form.... Now, as I'm developing a form, I always start with the following code to make sure my form varibles are spelled right, and I'm getting the right value ... saves me a lot of time, and I figured some people might like to see it. ... In retrospect, it's obvious... <? echo "<pre>"; print_r($_POST); // Or $_GET etc. echo "</pre>"; ?> I've discovered all sorts of interesting things, like misspelled or missing names in form elements, hidden values I've acciendtly copied and pasted from other forms etc. Simple and now, obvious, but hey, simple and obvious are good, Right?
I prefer var_dump then just viewing source, it allows me to know exactly what I'm looking at, not just the values. Example at: http://danltn.com/5 (click the download link to view source.)
Yep, var_dump(); is the way to go same with error_reporting(E_ALL); (No! not the quotes!) and ini_set('display_errors','On'); *sometimes you just love it* and ini_set('html_errors','On'); *sometimes very helpful in some areas*
Hmm.. according to the post you have seen many people putting quotes in error_reporting.. how intriguing I just saw this guy who made the same (human)mistake! afar from that I haven't seen many (unless you want me to count all the ones from phpfreaks) nice new blog
Not really a blog, only took me 2 hours to whip the whole thing up (free template not included.) Really impressed with the new framework! Dan
Why is there a wp-admin folder? :| (P.S if i don't reply it's because I had to go to the grocery store) Which framework?
Very old install of Wordpress that I no longer use. There's over 100 folders in public_html which really need a clean up. When I redesign my site, I just rename folders to random things rather than deleting. It's my own framework, it's not finished - I'll release it when it is. Dan