Re: POST Method
- From: Erwin Moller <since_humans_read_this_I_am_spammed_too_much@xxxxxxxxxxxxxxxx>
- Date: Fri, 29 Apr 2005 09:50:55 +0200
Erwin Moller wrote:
> FF wrote:
>
>> Hello
>>
>> I would like send variable to php script from URL
>> using POST method. Is possible do it ?
>> ( <a href="xxx.php">)
>>
>
> Hi,
>
> I am not sure what you mean, but is this helping?
>
> make URL (with Javascript or whatever)
> xxx.php?name=FF&number=42
>
>
> from xxx.php:
>
> $passedName = $_GET["name"];
> $passedNumber = $_GET["number"];
>
Or alternatively, with POST:
<form action="xxx.php" Method=:post">
<input type="text" name="name">
<input type="text" name="number">
<input type="submit">
</form>
and in xxx.php you retrieve them:
$passedName = $_POST["name"];
$passedNumber = $_POST["number"];
Regards,
Erwin Moller
.
- References:
- POST Method
- From: FF
- Re: POST Method
- From: Erwin Moller
- POST Method
- Prev by Date: Re: "XSLTProcessor class not found"
- Next by Date: Re: how to combine the results of two variables to echo another variable?
- Previous by thread: Re: POST Method
- Next by thread: Re: POST Method
- Index(es):
Relevant Pages
|