PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Graphisme & Infographie > macromedia.dreamweaver > Include hidden field echo dynamic text that includeshtml
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Include hidden field echo dynamic text that includeshtml

Réponse
 
LinkBack Outils de la discussion
Vieux 15/06/2008, 06h45   #1
jsteinmann
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Include hidden field echo dynamic text that includeshtml

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

  Réponse avec citation
Vieux 15/06/2008, 15h57   #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
Vieux 15/06/2008, 19h30   #3
jsteinmann
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Include hidden field echo dynamic text that includeshtml

I know what you mean. In this case it's in a "member only area" and it's
basically just inserting their profiles resume when they are registering for a
job fair on the job fair registration page, and it knows which resumes based on
the session of whos logged in.

Thanks! i'll give the htmlspecialchars a try...

  Réponse avec citation
Vieux 20/06/2008, 16h45   #4
DizzDizzy
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Include hidden field echo dynamic text that includeshtml

htmlspecialchars() is a god idea thank you very much

  Réponse avec citation
Vieux 21/06/2008, 03h09   #5
jsteinmann
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Include hidden field echo dynamic text that includeshtml

yup... it works
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 00h41.


Édité par : vBulletin® version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,10642 seconds with 13 queries