dolivervl
(usa Slackware)
Enviado em 01/08/2008 - 12:49h
Amigos,
Estou ediando um programa feito em PHP + HTML + XML, tenho um formulario de cadastro que quero que envie um email quando o usuário clicar em cadastra. O problema é que o arquivo é .xml e seu conteudo é um formulário do padrão HTML. Eu sei como enviar email com o PHP o problema no caso é que não sei como passar os valores das variaves desses .xml para poder enivar no PHP e tbm como colocar isso em um so codigo.
Desde de já agradeço a ajuda.
Obrigado.
Segue o codigo do add.xml
<form>
<title>{PRIVATE.FORM_ACTION_TITLE} Evento</title>
<action>index.php?sub=help&action=store</action>
<name>edit</name>
<width>580</width>
<formtag>true</formtag>
<border>true</border>
<buttons>
<set>
<footer>true</footer>
<header>true</header>
</set>
<return onclick="" button="return">
<location>{PRIVATE.FORM_PREVIOUS_PAGE}</location>
</return>
<save onclick="" button="saveall">
<location>javascript:document.forms[0].submit();</location>
</save>
</buttons>
<vars>
<type import="$_GET['type']" type="eval" />
<title type="eval" import="$_GET['type'] == 1 ? 'Servicos' : ($_GET['type'] == 2 ? 'Nivel de Eventos' : 'Dispositivos')" />
</vars>
<redirect>index.php?mod=myprofile&sub=accounts</redirect>
<fields>
<call_id type="hidden"/>
<call_user default="$_SESSION['minibase']['raw']['user_id']" action="eval" type="hidden"/>
<call_status type="droplist">
<title>Status</title>
<options>
<option name="0">Ativo</option>
<option name="1">Fechado</option>
</options>
</call_status>
<call_first_name type="textbox" size="35" required="true" validate="A:1:200">
<title>Nome</title>
</call_first_name>
<call_phone type="textbox" size="20">
<title>Telefone</title>
</call_phone>
<call_email type="textbox" size="25">
<title>Email</title>
</call_email>
<call_department type="droplist" empty="true" required="true" validate="A:1:100">
<title>Servicos</title>
<relation table="types" id="type_id" text="type_name" condition="type=1" order="type_name" ordermode="ASC"/>
</call_department>
<call_request type="droplist" empty="true" required="true" validate="A:1:100">
<title>Nivel de Eventos</title>
<relation table="types" id="type_id" text="type_name" condition="type=2" order="type_name" ordermode="ASC"/>
</call_request>
<call_device type="droplist" empty="true" required="true" validate="A:1:100">
<title>Dispositivos</title>
<relation table="types" id="type_id" text="type_name" condition="type=3" order="type_name" ordermode="ASC"/>
</call_device>
<call_devices type="droplist" empty="true" required="true" validate="A:1:100">
<title>Mais Informacoes</title>
<relation table="types" id="type_devices" text="type_devices" condition="type=3" order="type_name" ordermode="ASC"/>
</call_devices>
<call_staff type="droplist" empty="true" validate="A:1:100">
<title>Equipe GR</title>
<relation table="types" id="type_id" text="type_name" condition="type=''" order="type_name" ordermode="ASC"/>
</call_staff>
<call_date type="date" now="true">
<title>Data e Hora</title>
<fields>
<day format="int" default="now"/>
<month format="int" default="now"/>
<year from="2004" to="2014" default="now"/>
<hour separator=":" default="now" />
<minute default="now" />
</fields>
</call_date>
<call_date2 type="date" now="true">
<title>Data de Solucao</title>
<fields>
<day format="int" empty="true"/>
<month format="int" empty="true"/>
<year from="2004" to="2014" empty="true"/>
<hour separator=":" empty="true"/>
<minute empty="true"/>
</fields>
</call_date2>
<call_details type="textarea" size="60:5">
<title>Detalhes</title>
</call_details>
<call_solution type="textarea" size="60:5">
<title>Solucao</title>
</call_solution>
</fields>
</form>