boas, é assim, tenho um website que tem uma paginas de pre-inscriçoes onde envia as informaçoes do cliente para a base de dados mysql, mas eu queria que para alem disso ele emviasse as informaçoes para o e-mail tambem, mas assim tenho de chamar dois ficheiros php ao mesmo tempo, 1 para emviar o e-mail e outro para mandar para bd, como eu fasso isso.
Este é o codigo;
Código (HTML):
Este é o codigo;
Código (HTML):
<form action="aab.php" method="post">
Nome Completo<span class="auto-style7">*
<input name="nome" style="width: 249px" type="text" /><br />
<br />
Data de Nascimento<span class="auto-style7">*
<input name="dtnascimento" style="width: 249px" type="text" /><br />
<br />
Morada<span class="auto-style7">*
<input name="morada" style="width: 249px" type="text" /><br />
<br />
Pai<span class="auto-style7">*
<input name="pai" style="width: 249px" type="text" /><br />
<br />
M e<span class="auto-style7">*
<input name="mae" style="width: 249px" type="text" />
<br />
Telemovel Pai
<input name="telpai" style="width: 249px" type="text" /><br />
<br />
Telemovel Mae
<input name="telmae" style="width: 249px" type="text" /><br />
<br />
Encarregado de Educa o<span class="auto-style7">*
<input name="encarregadodeeducacao" style="width: 249px" type="text" /><br />
<br />
E-mail do Encarregado de Educa o
<input name="emailedu" style="width: 249px" type="text" /><br />
<br />
Data de entrada pretendida<span class="auto-style7">*
<input name="dtentrada" style="width: 249px" type="text" /><br />
<br />
Val ncia Pretendida <span class="auto-style7">*
<input name="valencia" style="width: 249px" type="text" /><br />
<br />
Irm os a
frequentar a institui o <span class="auto-style7">*
<input name="irmaosnainstituicao" style="width: 249px" type="text" /><br />
<br />
Descola o<span class="auto-style7">*
<input name="deslocacao" style="width: 249px" type="text" /><br />
<br />
<br />
<input name="submit" style="width: 89px; height: 32px" type="submit" value="Enviar" />
</form>
Nome Completo<span class="auto-style7">*
<input name="nome" style="width: 249px" type="text" /><br />
<br />
Data de Nascimento<span class="auto-style7">*
<input name="dtnascimento" style="width: 249px" type="text" /><br />
<br />
Morada<span class="auto-style7">*
<input name="morada" style="width: 249px" type="text" /><br />
<br />
Pai<span class="auto-style7">*
<input name="pai" style="width: 249px" type="text" /><br />
<br />
M e<span class="auto-style7">*
<input name="mae" style="width: 249px" type="text" />
<br />
Telemovel Pai
<input name="telpai" style="width: 249px" type="text" /><br />
<br />
Telemovel Mae
<input name="telmae" style="width: 249px" type="text" /><br />
<br />
Encarregado de Educa o<span class="auto-style7">*
<input name="encarregadodeeducacao" style="width: 249px" type="text" /><br />
<br />
E-mail do Encarregado de Educa o
<input name="emailedu" style="width: 249px" type="text" /><br />
<br />
Data de entrada pretendida<span class="auto-style7">*
<input name="dtentrada" style="width: 249px" type="text" /><br />
<br />
Val ncia Pretendida <span class="auto-style7">*
<input name="valencia" style="width: 249px" type="text" /><br />
<br />
Irm os a
frequentar a institui o <span class="auto-style7">*
<input name="irmaosnainstituicao" style="width: 249px" type="text" /><br />
<br />
Descola o<span class="auto-style7">*
<input name="deslocacao" style="width: 249px" type="text" /><br />
<br />
<br />
<input name="submit" style="width: 89px; height: 32px" type="submit" value="Enviar" />
</form>