Welcome Guest, Not a member yet? Register   Sign In
i want to receive the POST parameter as method parameter
#1

[eluser]tominku[/eluser]
hi all.

how can i do that?

it is inconvenient..

class Blog {
function write(){
$name = $_POST['name'];
$memo = $_POST['memo'];
insert into ....
}
}

it will be convenient..

function write($name, $memo){
insert into...
}
#2

[eluser]gtech[/eluser]
[strike]
you can use a GET instead of POST in your form action method. then the form data should be submitted via the url.
[/strike]
sorry rubbish idea, unless you enable query strings in the URL




Theme © iAndrew 2016 - Forum software by © MyBB