Welcome Guest, Not a member yet? Register   Sign In
using $_post in function
#3

[eluser]urrus[/eluser]
Hallo

I think the problem in function definition function username_check($_POST['username']);

first of all you do not need this (Wink at the end of the string
the second look at the your functions arguments, in definition there must be names of variables you should use in work of you function, note existed ones, it's like a white spots you will fill it when you call this function. The meaning of existing arguments in functions: you can put different data in the same function.

So spend some time to read about functions in Internet, it's important thing.

And the last one, that how it should be write:
Code:
function username_check($str)
        {
///----------------------------->

/*and when calling function:*/

username_check($_POST['username']);


Messages In This Thread
using $_post in function - by El Forum - 08-15-2009, 10:01 PM
using $_post in function - by El Forum - 08-15-2009, 10:04 PM
using $_post in function - by El Forum - 08-15-2009, 11:43 PM
using $_post in function - by El Forum - 08-16-2009, 01:17 AM
using $_post in function - by El Forum - 08-20-2009, 10:58 PM
using $_post in function - by El Forum - 08-20-2009, 11:20 PM
using $_post in function - by El Forum - 08-20-2009, 11:37 PM



Theme © iAndrew 2016 - Forum software by © MyBB