RE: How to submit form via PHP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



[snip]
Hello. I'm pretty noob in PHP and would like to know how can I submit
some HTML form got via file_get_contents(URL). For example:

<form name="someform" method="post">
<input type="submit">
</form>

so how can I submit 'someform' form.

Thanks in advance for any suggestions.
[/snip]

Click 'Submit'



Your form tag needs an action statement

<form name="someform" action="some.php" method="POST">

All of the form's variables will be available in the $_POST array

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux