ProgramadorMarco Posted March 7, 2013 at 11:18 AM Report #498262 Posted March 7, 2013 at 11:18 AM (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 March 7, 2013 at 02:02 PM by scorch Adicionado Geshi.
NunoDinis Posted March 7, 2013 at 12:18 PM Report #498265 Posted March 7, 2013 at 12:18 PM 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
ProgramadorMarco Posted March 7, 2013 at 12:41 PM Author Report #498268 Posted March 7, 2013 at 12:41 PM <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?
brunoais Posted March 7, 2013 at 01:41 PM Report #498270 Posted March 7, 2013 at 01:41 PM 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%.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now