Re: How to submit form via PHP

From: Date: Fri, 15 Aug 2008 18:42:05 +0000
Subject: Re: How to submit form via PHP
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-278180@lists.php.net to get a copy of this message
2008/8/15 Jay Blanchard <jblanchard@pocket.com>: > [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 > I think he's asking how to make a POST request via file_get_contents(URL), as opposed to a GET request. -- Dotan Cohen http://what-is-what.com http://gibberish.co.il א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing?

« previous php.general (#278180) next »