Woah! How on earth do you get a string like that?
Anyways, what I'd suggest, is using explode . You'd explode that string by {{{. You'd then be left with:
$array[0] = key: 0 Value: LastName
$array[1] = D'Avignon}}}FirstName
$array[2] = A'n}}}Institution
$array[3] = EIMP}}}Department
$array[4] = department of test}}}City
$array[5] = Chicago}}}CountriesID
$array[6] = 44}}}
You could then get the first part of the string by doing something like this:
for($count=0;$count<count($array);++$count) {
$array[$count] = substr($array[$count],0,strpos($array[$count],"}}}"));
}
You'd then be left with the following:
$array[0] = key: 0 Value: LastName
$array[1] = D'Avignon
$array[2] = A'n
$array[3] = EIMP
$array[4] = department of test
$array[5] = Chicago
$array[6] = 44
Now, to access D`Avignon you could simple use $array[1].
I'm not sure if this answers your question, hope it provides you with some sort of assistance though!
Regarding stripslashes() and addslashes() ... this is used to handle ' characters when displaying/capturing information. It shouldn't have any affect on a simple POST form.
Hope it helps!
Kevin
[PS: This PHP highlighter is a bit buggy, so ignore the errors in the syntax highlighting!]