IhavethisdesignalreadydoneandmyproblemisinrelatingthefilesandinthephpfilebecauseIdonotknowifitisoktowritetoxmlandalsodonotknowafterwardshowtoopenandsave
<!doctype html>
<html>
<head>
<title> Formulário </title>
<meta name="description" content="Formulário">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<h1> Formulário </h1>
<h2> Por favor preencha o formulário abaixo </h2><br />
<form action="file:///C:/Users/André gato/Script_do_Formulario.php" method="post">
<!-- DADOS PESSOAIS-->
<fieldset>
<legend>Dados Pessoais</legend>
<table cellspacing="10">
<tr>
<td>
<label for="nome">Nome: </label>
</td>
<td align="left">
<input type="text" name="email">
</td>
<td>
<label for="sobrenome">Sobrenome: </label>
</td>
<td align="left">
<input type="text" name="sobrenome">
</td>
</tr>
<tr>
<td>
<label>Nascimento: </label>
</td>
<td align="left">
<input type="text" name="dia" size="2" maxlength="2" value="dd">
<input type="text" name="mes" size="2" maxlength="2" value="mm">
<input type="text" name="ano" size="4" maxlength="4" value="aaaa">
</td>
</tr>
<td>
<label>NºCC/BI:</label>
</td>
<td align="left">
<input type="text" name="cpf" size="8" maxlength="8"> - <input type="text" name="cpf2" size="4" maxlength="4">
</td>
</table>
</fieldset>
<br />
<!-- ENDEREÇO -->
<fieldset>
<legend>Dados de Endereço</legend>
<table cellspacing="10">
<tr>
<td>
<label for="rua">Rua:</label>
</td>
<td align="left">
<input type="text" name="rua">
</td>
<td>
<label for="numero">Numero:</label>
</td>
<td align="left">
<input type="number" name="numero" size="4">
</td>
</tr>
<tr>
<td>
<label for="bairro">Bairro: </label>
</td>
<td align="left">
<input type="text" name="bairro">
</td>
</tr>
<tr>
<td>
<label for="distrito">Distrito:</label>
</td>
<td align="left">
<select name="estado">
<option value="av">Aveiro</option>
<option value="be">Beja</option>
<option value="br">Braga</option>
<option value="br">Bragança</option>
<option value="ca">Castelo Branco</option>
<option value="co">Coimbra</option>
<option value="ev">Évora</option>
<option value="fa">Faro</option>
<option value="gu">Guarda</option>
<option value="le">Leiria</option>
<option value="li">Lisboa</option>
<option value="po">Portoalegre</option>
<option value="po">Porto</option>
<option value="sa">Santarém</option>
<option value="se">Setúbal</option>
<option value="vi">Viana do Castelo</option>
<option value="vi">Vila Real</option>
<option value="vi">Viseu</option>
</select>
</td>
</tr>
<tr>
<td>
<label for="cidade">Cidade: </label>
</td>
<td align="left">
<input type="text" name="cidade">
</td>
</tr>
<tr>
<td>
<label for="cep">Código Postal: </label>
</td>
<td align="left">
<input type="text" name="cep" size="4" maxlength="5"> - <input type="text" name="cep2" size="3" maxlength="3">
</td>
</tr>
</table>
</fieldset>
<br />
<!-- DADOS DE LOGIN -->
<fieldset>
<legend>Dados de login</legend>
<table cellspacing="10">
<tr>
<td>
<label for="email">E-mail: </label>
</td>
<td align="left">
<input type="email" name="email">
</td>
</tr>
<tr>
<td>
<label for="imagem">Imagem de perfil:</label>
</td>
<td>
<input type="file" name="imagem" >
</td>
</tr>
<tr>
<td>
<label for="login">Login de utilizador: </label>
</td>
<td align="left">
<input type="text" name="login">
</td>
</tr>
<tr>
<td>
<label for="pass">Password: </label>
</td>
<td align="left">
<input type="password" name="pass">
</td>
</tr>
<tr>
</tr>
</table>
</fieldset>
<p><br />
<input type="submit" value="Registar">
<input type="reset" value="Limpar">
</p>
<p> </p>
</form>
</body>
</html>