Page 1 of 1
Retrieving from Multipart Form
Posted: Sat Feb 10, 2007 5:58 pm
by AliasBDI
I have a form that submit both a file and some input text. I know that PHP retrieves the file from the form using $_FILES, but how can I retrieve the text from input fields like in a $_POST?
Thanks.
Posted: Sat Feb 10, 2007 6:24 pm
by kaszu
<form ...>
<input type="text" name="my_input" />
...
</form>
Code: Select all
if (!empty($_POST['my_input']))
$my_input_value = $_POST['my_input'];
else
$my_input_value = NULL;
Posted: Sat Feb 10, 2007 6:57 pm
by AliasBDI
Ahh ... I had some other problems. It worked.