Pagina 1 din 1

trimitere HTTP POST

Scris: Mie Oct 05, 2011 12:21 pm
de chuck_n

Cod: SelectaĊ£i tot

<html>
<head>
<title> title </title>
</head>
<body>
<form action="submit_form.php" method="POST">
<input type="radio" name="gender" value="Male"/>Male<br/>
<input type="radio" name="gender" value="Female">Female<br/>
<input type="radio" name="gender" value="Other"/>None of your Business<br/>
<input type="submit" value="submit"/>
</form>
</body>
</html>


Prin ce metode as putea sa-i trimit serverului $_POST['gender']='Otherr' ?

Scris: Mie Oct 05, 2011 4:42 pm
de EoKlaus
Ai incercat sa faci doar: $gender = $_POST['gender']; ?

Scris: Joi Oct 06, 2011 12:55 pm
de chuck_n
Poate m-am exprimat gresit vreau sa-i trimit serverului o alta valoarea decat cea din input, stiu ca se poate cu telnet dar mai exact cum?

Scris: Joi Oct 06, 2011 5:11 pm
de icsfails
e mai simplu cu CURL:

Cod: SelectaĊ£i tot

curl http://site.com/submit_form.php -d 'gender=buhaha'