Hai freinds
With out submit button how to submit this form in php sever side.using post method
i have set the value.get method menas no probs.pass the value usl....
Using post method how is possible.
<?php
$postdata = http_build_quer y(
array(
'username' => 'user',
'password' => 'user123',
)
);
$opts = array('http' =>
array(
'method' => 'POST',
'header' => 'Content-type: application/x-www-form-urlencoded',
'content' => $postdata
)
);
$context = stream_context_ create($opts);
$result = file_get_conten ts('http://www.domainname. com/login.php', true, $context);
?>
With out submit button how to submit this form in php sever side.using post method
i have set the value.get method menas no probs.pass the value usl....
Using post method how is possible.
<?php
$postdata = http_build_quer y(
array(
'username' => 'user',
'password' => 'user123',
)
);
$opts = array('http' =>
array(
'method' => 'POST',
'header' => 'Content-type: application/x-www-form-urlencoded',
'content' => $postdata
)
);
$context = stream_context_ create($opts);
$result = file_get_conten ts('http://www.domainname. com/login.php', true, $context);
?>
Comment