Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <form method="get">
- <div align="center"><textarea name="post" ></textarea></div>
- <div align="center"><input type="submit" value="Submit"></div>
- </form>
- <?
- $aaa = $post;
- $new_aaa=str_replace(array(
- 'a',
- 'b'
- ), array(
- 'A',
- 'B'
- ), $aaa);
- ?>
- <textarea readonly="true" cols="100" rows="3" name="post" >
- <? echo $new_aaa; ?>
- </textarea>
- </div>
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- <form method="get">
- <div align="center"><textarea name="post" id="post" ></textarea></div>
- <div align="center"><input type="submit" value="Submit"></div>
- </form>
- <!-- ################################### -->
- <script>
- function Convert()
- {
- var p = document.getElementById ("post").value;
- p = p.replace(/a/g,”A”);
- p = p.replace(/b/g,”B”);
- document.getElementById ("post").value= p;
- }
- </script>
- <!-- ################################### -->
- <textarea readonly="true" cols="100" rows="3" name="post" >
- </textarea>
Advertisement
Add Comment
Please, Sign In to add comment