2
I’m looking to create a simple email marketing server. So for this I have to take the content of an HTML and save a variable in PHP. This is my form.
<form method="post" action="email.php" enctype="multipart/form-data">
<h1> Enviar E-mails </h1>
<table>
<tr><td> E-mail: </td><td> <input type="text" name="assunto"></td></tr>
<tr><td> Assunto: </td><td> <input type="text" name="a"></td></tr>
<tr><td>Arquivo HTML </td><td> <input type="file" name="arquivo" /></td></tr>
<tr><td><input type="submit" value="ok"> </td><td> </td></tr>
</table>
</form>
I also made a php file to get this information. However it returns an error: Array to string Conversion in C: xampp htdocs emailmkt email.php on line 3
<?php
$arquivo = $_FILES['arquivo'];
echo $arquivo;
?>
How do I convert this value to string? How do I put this html file into a variable?
The file comes from an input
– gmsantos
Yeah, I just showed you how to use the function.
– MeuChapeu