You are here: preg_replace « PHP Programming Language « IT news, forums, messages
preg_replace

Posted by Silvertype on 11/02/07 16:35

Hi guys,

I have these html tags:

<input type="text" id="txtName" name="txtName" />

<textarea id="taHello" name="taHello">hello world</textarea>

which I want to replace with the following tags:

<input type="text" id="txtName" name="txtName" onClick="setName()" />

<textarea id="taHello" name="taHello" onClick="setName()">hello
world</textarea>

I know that it can be done by using preg_replace but I haven't really
figured out how to use it. Any help would be greatly appreciated. Thanks in
advance.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация