post data from a form and special character: " ' " and " / "



Hi, my problem:

example:
-----
<form action="<?=$_SERVER['PHP_SELF']?>" method="post" name="form1">
<input type="text" value="<?echo ($postedTitle) OR (the content of the title
field in the database)?>" name="title"> <?= $err_msg?> //required field
<input type="text" value="<? echo ($postedMsg) OR (the content of the
message field in the database) ?>" name="title"> //no required field

<input type="submit" value="submit changes">
</form
/-----

After a submit, first of all I make a control on the required fields: "if"
the field is empty some error message will appear.. "else" the application
will update the record on the database.

THE PROBLEM: if the field is empty I need to show the form again, but all
the fields should be filled.. if they were changed before the submit.. with
the new text entered! As usual. BUT, if I have insert for example a " ' "
the field will be filled with " \' " ... IF " \ " then " \\ "
If I submit the form again and there are some more errors... \\ becomes \\\
and \\\\ and so on...

what is the best way.. without using javascript.. to remember the content of
a field?

Could some one help me, please? Thank you very much..

p.s. I'm sorry for my english is not perfect ;)


--
Paola


.



Relevant Pages

  • Re: Re-post: Yet another problem with "no current record"
    ... It is the case that my detail area is ... move focus to another control if there are no records. ... There is a case where Access 2002 SP3 generates this error message afer a ... I set "No Additions" to True in my code, so no empty row shows ...
    (microsoft.public.access.formscoding)
  • Re: Null date field
    ... Entering a space is not the same thing as entering a value, ... The error message you reported is not the standard one, ... If you wanted to programmatically assign the Null value to the control named ... the date field is Null or is it Empty? ...
    (microsoft.public.access.queries)
  • Re: DateTime Picker
    ... Be aware that you can't use an EMPTY() or NULL date field value because I ... don't think those are valid values for that control. ... "Hutch Elassaad" wrote in message ... >>> Anyone knows of a replacement of the Datetime Picker? ...
    (microsoft.public.fox.programmer.exchange)
  • Re: DateTime Picker
    ... The DateTimePicker has no concept of empty dates. ... datetime really) or it's NULL. ... You have to catch the state of the control in the Change event and update ... > Also be sure to set the MinDate and MaxDate properties. ...
    (microsoft.public.fox.programmer.exchange)
  • Re: SetFocus doesnt work if recordset is empty?
    ... Another workaround is to set the form's RecordSource property to an empty ... string (assumes that the form has code to reassign the correct RecordSource ... > If you control you are trying to refer to is in the Form Header or Form ...
    (microsoft.public.access.formscoding)