Question: I am webdeveloper. and my customers request me to edit some instructions which are on invoices  

like 

```
<ul>
<b>NOTE </b>
 <li>Check all the stock on sopt after that company will not claim anything </li>
<li>stock will be return within three days afther that company will deduct 10%</li> 
</ul>

```

we process request and upload that file agian to server. we need a machnism so that user has rights to edit php script but only instructions. Do himself changes to instruction and when click to submit form clients enter content changes occour in php script which is stored on server.

for exapmen 

```
<?php
// here the all the code of php
?>
<html>
// here div for instructions 
<div id="instructions" >Here goes instruction </div>
</html>

```

as usual company instruction changes month by month result of changing policies.

three solution i find

1-store that insturction div content to database (which is rejected by my boss, dont know why)  

2-<http://sourceforge.net/projects/ontext/(but> it loads in editor all the code of php and user how find the instruction in hunders of line of code) // boss says only text of instruciton will appear mean rejected  

3-see some jquery to edit content of a div from another php script but user may want to bold some text so when user wants to click to changing div content from another script we show text in [what you see in what you get] editor.

**Requirment:**

```
    <ul><li>
    dont store instruction in mysql</li>
    <li> 
    when users want to change instruction it just click on edit (button/labe etc) user gets instructions in editor and changing as they want when submit that page these <b>instruction  </b> will be hardcoded in php script
    </li>

    </ul> 

```

Any one help me in this regard.

Answer: 
Discussing whether your boss is an idiot and how to cope with that is out of the scope of this site. Try asking that on <https://softwareengineering.stackexchange.com/>.

To answer the technical part of the question:

* do store the content in the database
* make a separate php page with a post form and a wysiwyg editor to edit the content
* in your main php script insert the content from the database
* do NOT hardcode content in the main script and do NOT modify it on the fly

Hope this helps.
i have find this solution by an open source project 

link is

<http://sourceforge.net/projects/ontext/>