Freelancers Network
 
skill list top cap
Homepage
Join the Freelancer's Network
Update your details
Find a freelancer
Post a project
Find a project
Projects Archive
Post a job
Find a job
Jobs Archive
See Dan's Pages
See Andy's Pages
Link to this site
Resources
Join/Leave Forum
Forum Messages
+Additions+ Adverts
Advertising
Contact Us
Subscribe to our newsletter - enter your email address and hit return
Freelancers.net is owned and operated by Andy Stowell and Dan Winchester
skill list end cap
guru web hostcom

Find me again on Freelancers.net

Re: FN-FORUM: Stupid question

date posted 3rd October 2006 19:09

I demand that Pam [EMAIL REMOVED] may (or may not) have written:

> I was wrong it still doesn't work..

There are various assumptions being made here, such as: You're
querying $_POST but is the method in the form "POST" or "GET"? (I'm
not saying it is wrong, but *we* can't tell; all the advice so far
assumes it's right and apparently isn't helping.)

So you need to go back a stage. Is the data actually arriving, what
exactly are you getting and where?

My first suggestion is that, since you're using PHP, you should use
$_REQUEST instead of $_POST because $_REQUEST combines both $_POST and
$_GET (and $_COOKIE). That way you can be sure you're not missing any
data regardless the method of the form.

My second suggestion is that you resort to the old print variable
trick, because then you can try various options and see what results
you're actually getting, rather than making assumptions. Use this:

echo "" ;
var_dump($_REQUEST) ;
echo "" ;

I always try to work to the principle "Look, don't think" :-)

Kind regards

Steve

True anecdote: I spent over 10 years on a computer magazine helping
complete beginners figure out why their programs wouldn't work. This
was in the days of the 5.25in floppy disk. I was at a computer show in
the 1980s, working on the magazine's stand, and someone turned up
saying their disk didn't work. I asked if they had it with them, they
said yes, took the disk from their coat pocket, unfolded it...

--
Steve Turnbull, [EMAIL REMOVED]
Web Content Author
Mob: 07006 311 114
Fax: 0871 989 5650
http://www.theWordsmith.net/

... A conscience is what hurts when all your other parts feel so good



Messages by Day
October 31st 2006
October 30th 2006
October 29th 2006
October 28th 2006
October 27th 2006
October 26th 2006
October 25th 2006
October 24th 2006
October 23rd 2006
October 22nd 2006
October 21st 2006
October 20th 2006
October 19th 2006
October 18th 2006
October 17th 2006
October 16th 2006
October 15th 2006
October 14th 2006
October 13th 2006
October 12th 2006
October 11th 2006
October 10th 2006
October 9th 2006
October 8th 2006
October 7th 2006
October 6th 2006
October 5th 2006
October 4th 2006
October 3rd 2006
October 2nd 2006
October 1st 2006


Messages by Month
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006


Messages by Year
2008
2007
2006
2005
2004
2003
2002
2001
2000