|
Posted by Erwin Moller on 03/06/07 15:47
dajava wrote:
> 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
Hi,
This is part that needs more words/a better description:
"I got this : This is a test. Don"
My problem is: 'I got this.'.
My exect problem is 'got'.
WHAT did you get WHERE?
Did the browser after submitting say that?
Or did it appear like that in some newsgroup?
In case of browser: Did the text appear like that in an input-element? Or as
plain HTML?
Did you look at the source of the HTML? (rightmousebutton on the offending
page and select 'view source'.)
You should give us that information, or you will be stuck with my 'wild
guesses'.
;-)
>
> ('t you like this? : these disappeared)
> -----------------------------------------------
>
> I cannot express myself well.
Keep trying. :-)
> I do not know PHP.
That is a problem when discussing a PHP problem. Seriously, you, or your
friend, should know roughly what he is doing.
> I will post reply again
> when I got e-mail from my friend.
>
OK
Regards,
Erwin Moller
> Thanks anyway.
>
> dajava,
Navigation:
[Reply to this message]
|