Date: 11/17/99
- Next message: Ian Marsman: "Re: [PHPLIB] put <?php .. ?> tag into database ?"
- Previous message: php3 <email protected>: "[PHPLIB] helps"
- In reply to: Alec Effrat: "Re: [PHPLIB] put <?php .. ?> tag into database ?"
- Next in thread: Ian Marsman: "Re: [PHPLIB] put <?php .. ?> tag into database ?"
- Reply: Ian Marsman: "Re: [PHPLIB] put <?php .. ?> tag into database ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I have try to put into the database this string:
<a href="<?php $sess->purl(index.php);?>">click here</a>
after i select this string from database html undestand this string in this way:
<a href="<?php $sess-> "> purl(index.php)" click here </a>
some ideas?
Thank you
serghej
Alec Effrat wrote:
> Serghej,
> I know understand what you are talking about... I rawurlencode everything now a
> days. The only negative to rawurlencoding DB information is it's harder to search. But
> I find myself passing around encoded strings all over the place. And normally I use
> javascript to unencode my data to forms.
>
> For example:
> <FORM NAME="form1">
> <TEXTAREA NAME="textbox">Some stuff<TEXTAREA>other stuff</TEXTAREA></TEXTAREA>
> </FORM>
> This would fail to have the desired affect.
>
> While
> <TEXTAREA NAME="textbox"></TEXTAREA>
>
> <SCRIPT LANGUAGE=JAVASCRIPT>
> <!-- Hide from older browsers! (But won't function right so what's the point!)
> document.form1.textbox.value = unescape("<?php echo rawurlencode("Some
> Stuff<TEXTAREA>other stuff</TEXTAREA>");?>");
> // -->
> </SCRIPT>
>
> Would work fine.. I realize this doesn't help your situation but
> rawurlencoding/decoding of data to be passed around is the way to go.
>
> Alec Effrat
> alec <email protected>
>
> serghej petrov wrote:
>
> > The problem is in $sess->purl
> > ^_____this operator, because for html this is the
> > end of <a href=.....> tag!
> >
> > some other ideas?
> >
> > thanks all.
> >
> > Alec Effrat wrote:
> >
> > > I think you just forgot the semicolon...
> > > it should look like this
> > >
> > > <?php ...
> > > code
> > > .... ?>
> > > Please Click <A HREF="<?php $sess->purl("index.php");?>">here</A>
> > >
> > > <?php more code
> > > ...
> > > ?>
> > >
> > > Alec Effrat
> > > alec <email protected>
> > >
> > > serghej petrov wrote:
> > >
> > > > Hi all.
> > > >
> > > > I'have try manage messages via database, and if i put the string with php tag like
> > > > this
> > > >
> > > > "please Click <a href="<?php $sess->purl("index.php")?>">here</a>"
> > > >
> > > > after select this string from db i have : please Click ">here
> > > >
> > > > Is it possible to do it?
> > > >
> > > > tHX
> > > >
> > > > Serg
> > > >
> > > > -
> > > > PHP3 Base Library Mailing List. Send messages to <phplib <email protected>>.
> > > > To unsubscribe, send "unsubscribe" to <phplib-request <email protected>> in
> > > > the body, not the subject, of your message.
> >
> > -
> > PHP3 Base Library Mailing List. Send messages to <phplib <email protected>>.
> > To unsubscribe, send "unsubscribe" to <phplib-request <email protected>> in
> > the body, not the subject, of your message.
-
PHP3 Base Library Mailing List. Send messages to <phplib <email protected>>.
To unsubscribe, send "unsubscribe" to <phplib-request <email protected>> in
the body, not the subject, of your message.
- Next message: Ian Marsman: "Re: [PHPLIB] put <?php .. ?> tag into database ?"
- Previous message: php3 <email protected>: "[PHPLIB] helps"
- In reply to: Alec Effrat: "Re: [PHPLIB] put <?php .. ?> tag into database ?"
- Next in thread: Ian Marsman: "Re: [PHPLIB] put <?php .. ?> tag into database ?"
- Reply: Ian Marsman: "Re: [PHPLIB] put <?php .. ?> tag into database ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

