Jump to content

Recommended Posts

Posted (edited)

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;

<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>
Edited by scorch
Adicionado Geshi.
Posted

Põe isso em tag senão não dá para perceber..

Soluções:

1-não usas ficheiros, mas sim direto no código

2-o código dos dois num

3-fazer o include de um ficheiro noutro

Estranha forma de vida que tem a capacidade de transformar comandos em mensagens de erro.

ndsotware.org

Posted
<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>

é isto que tava a pedir?

Posted

Ajuda... Mas falta usar o geshi e formatar isso usando a indentação.

"[Os jovens da actual geração]não lêem porque não envolve um telecomando que dê para mirar e atirar, não falam porque a trapalhice é rainha e o calão é rei" autor: thoga31

Life is a genetically transmitted disease, induced by sex, with death rate of 100%.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.