![]() |
|
#1
|
|||
|
|||
Textarea and PHP.I want to know if it's possible to show PHP code in a textarea without the code being interpreted and then stock it in a MySQL table.
Thanks. |
|||
|
#2
|
||||
|
||||
|
Hello Antinaris,
Yes, it's possible.... If you want to simply display the PHP code in a textarea: PHP Code:
I think that's it! __________________
J de Silva Learning Journal | GIDForums™ | GIDNetwork™ | GIDWebhosts™ | GIDSearch™ Last edited by JdS : 16-Jan-2004 at 11:00.
|
|
#3
|
||||
|
||||
|
Well, it would be very easy to display the code in a textarea, you would have to use I think javascript though so it does not count the php code as code itself, and think it is page of the page.
Storing it then into MySQL Table, heh, I dunno. I would think it would be hard to do because you would have to have the code changed if you used javascript to display the code in a textarea. View the source code for: mrbobdouglas[dot]com/dev/errorpage_gen.php You will notice that I have to use a / in a lot of areas making a note not ti accept this as a PHP tag. Your script would have to be able to modify the /'s that would be added to your code in order to display them in a textarea. JdS might have an easier way to display the code inside a textarea without adding any changes to it, and without allowing it work as php code inside the page. If you can do that, I think a simple script to store the information from a textarea to a MySQL table would be easy to do. <edit>JdS beat me to the post... pfff!</edit> __________________
Mr. Bob's Web Design - Tirelessly looking for ways to enhance the customer base of your business. |
Recent GIDBlog
Vista ?Widgets? on Windows XP by LocalTech
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| textarea width problem | zuzupus | Web Design Forum | 2 | 23-Jul-2003 03:06 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The