| 
	
 | 
 Posted by dajava on 03/06/07 14:53 
On Mar 6, 7:05 pm, Erwin Moller 
<since_humans_read_this_I_am_spammed_too_m...@spamyourself.com> wrote: 
> dajava wrote: 
> > Hi, 
> 
> > Sorry for this beginner's question. 
> > I do not know PHP 
> > and write for my friend. 
> 
> > He has never been a professional programmer. 
> > He studied C and PHP with some books 
> > and made a bulletin board for his hobby homepage. 
> > (He uses MS-Windows XP) 
> 
> > Now, the problem is: 
> 
> > Writing a message 
> > and previewing is OK. 
> > But, after posting, all the words including and after ' (apostrophe/ 
> > single quotation mark) disappear. 
> 
> Well, you didn't give enough information, so we cannot help really. 
> Some questions: 
> 
> What is writing a message excactly? 
> Is that filling in some HTML-form that is submitted to a server? 
> 
> What is previewing a message excactly? 
> Is that some JavaScript or does it include a trip to the server? 
> 
> If so: what does the server do with it? 
> - some possibilities: Store it in a database, echo it back, store it in a 
> file. 
> 
> And then: WHERE do these characters disappear? In a form? or as HTML? 
> 
> A wild guess: 
> You write back to the client: 
> <input type="text" name="whatever" value='I can't do that'> 
> 
> That is wrong. 
> 
> If you need " or ' in your response back to the client, make sure you call 
> htmlentities() around the literal part you send back as value (or in any 
> other inputelement-value, also textareas). 
> 
> Regards, 
> Erwin Moller 
> 
> 
> 
> 
> 
> > Examples are, 
> 
> > -------------------------- 
> 
> > I can't do that 
> 
> > ==> I can 
> 
> > --------------------------..................... 
> 
> > The person named 'Jim' is smart. 
> 
> > ==> The person named 
> > -----------------------------............. 
> 
> > Any hints? 
> 
> > dajava,- Hide quoted text - 
> 
> - Show quoted text -- Hide quoted text - 
> 
> - Show quoted text - 
 
I forward  your wild guess to him. 
 
Let me rephrase my question 
with this hypothetical example with google groups. 
 
----------------------------- 
 
I arrived comp.lang.php 
and type a message to ask a question. 
 
entering/editing : This is a test. Don't you like this? 
previewing :  This is a test. Don't you like this? ( great so far) 
Now, I click on POST button. 
then, what the heck, 
I got this : This is a test. Don 
 
('t you like this? : these  disappeared) 
----------------------------------------------- 
 
I cannot express myself well. 
I do not know PHP. 
I will post reply again 
when I got e-mail from my friend. 
 
Thanks anyway. 
 
dajava,
 
  
Navigation:
[Reply to this message] 
 |