Afficher un message
Vieux 15/06/2008, 16h57   #2
Michael Fesser
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Include hidden field echo dynamic text that includes html

..oO(jsteinmann)

><input type="hidden" name="myresume" value="<?php echo $row_rs['myresume']; ?>">
>
> since the stored data is in an html format, it displays the resume data in the
>hidden field on the page.... not desired.
> I do not want to strip the html out of if I have to, but do know how to do
>this. Any other ideas?


htmlspecialchars()

But the data and the hidden input shouldn't be there at all for various
reasons. Have a look at sessions instead to transfer data from one page
to another without having to send it forth and back between the server
and the client.

The above not only complicates things, it could also become a security
problem, dependent on what you want to do with the data. Everything sent
from the client can be faked and manipulated, even the content of hidden
or disabled form fields. You would always have to revalidate the data on
the server, over and over again. With sessions you can avoid that.

Micha
  Réponse avec citation
 
Page generated in 0,04482 seconds with 9 queries