HTML and CSS form

Asked

Viewed 157 times

-4

I’m taking a test and I need to make a standard "work with us" form, with curriculum submission.. I need to know how to validate this form and make it receive files..

<form>
<label>Nome*:</label>
<input class="nome" type="text"></br>
<label>Email:</label>
<input class="email" type="password"></br>
<label>UF:</label>
<input class="uf">
<label>Cidade:</label></br>
<input class="cidade" type="text">
<label>Mensagem:</label></br><textarea class="msg" cols="35" rows="8"></textarea></br>
<input class="bnt_submit" type="submit" value="Enviar">
</form>
  • Search for Phpmailer

  • Of course.. I’m doubtful what I should use for this.. is Jquery, PHP.. ?

  • vc will need a backend for the file upload case. And to validate vc can use since the html validation. I suggest you try with js or jquery.

1 answer

0


Hey, come on, man. The html and the css will be in the machine of who is accessing your site, IE, there in the browser, we can say that they are running in the client. However, if you want to take the data that the client is working on you need a server request that will receive this data, this can be done in php, Node, python, etc.

If you are starting to study this now, I advise you to use php, as the community is still the largest. Once you decide which one to use, you can play pass the client information to the server using the attribute action="meuphp.php" of the html form tag. To get the data in this file use the variable $_GET["cidade"] for example. The name inside get must be the name of your input. To upload with html, use:

<input type="file" name="fileUpload">
  • Thank you very much. You’ve given me a very big north hahaha.

  • Anything, just ask me.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.