Jump to content
Fórum Script Brasil
  • 0

Php + Xml


Guest --Daniel --
 Share

Question

Guest --Daniel --

pessoal to fazendo uma chamada via http que me retornara um xml...

<form action="http://www.site.com.br/webservices/remote_login.jsp" method="get" name="login"><div id="caixa1"><input name="login" type="text" size="20" maxlength="50" style="border-width: 1px; border-style: solid; border-color:#CED3E0; font-size:11pt; color: #787C8C; letter-spacing : 1px;" /></div> <div id="caixa2"><input name="password" type="password" size="20" maxlength="50" style="border-width: 1px; border-style: solid; border-color:#CED3E0; font-size:11pt; color: #787C8C; letter-spacing : 1px;" /></div> <input type= hidden name=token value='231631665465454L'> <div id="caixa3"><img src="images/interrogacao.jpg" /></div> <div id="caixa4"><input name="logar" type="image" src="images/logar.jpg" /></div></form>

até ai beleza ele me retornou o xml na pagina...retornou esse resultado aqui

<?xml version="1.0" encoding="ISO-8859-1" ?> - <login> <id>13834</id> <nome>Rafael</nome> <sobrenome>Rossi</sobrenome> <datacadastro>02/05/2007</datacadastro> <validade>12/12/2007</validade> <modalidade>C</modalidade> <situacao>A</situacao> <fashion>S</fashion> <marketing>S</marketing> <carreira>S</carreira> <tecnologia>S</tecnologia> </login>

agora como eu guardo esses dados em variaveis ou sessions no php, pois preciso desse dados pra fazer algumas validacoes.

valeu galera é meio complicado pra mim pois sou iniciante em php com xml.

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Forum Statistics

    • Total Topics
      149.8k
    • Total Posts
      646.6k
×
×
  • Create New...