form to insert HTML

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
mr yes
Forum Newbie
Posts: 3
Joined: Thu Jul 12, 2007 5:19 pm

form to insert HTML

Post by mr yes »

hi
I want to create an administration form which will automatically insert HTML into a page. its for simply adding a rollover thumbnail link to create a list of thumbnails in a table TD.

for example
<a href="*page_name.php*" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image*an automatically changing number going up in 1's*','','*thumbnail name.gif*',1)"><img src="button1.gif" name="Image*an automatically changing number going up in 1's*" width="100" height="100" border="0" title="*title*" alt="*title*"></a>
so each bit in bold would be inputted via a text field and the rest would be automatic. the fields would be page name, gif name and title
What code would go on the admin page and what on the target page?

I havent used php for 5 years so I'm a bit rusty :wink:
Any tutorials or code would be very very helpful, I can't seem to find any websites that explain simple things like this in a way i can understand.
mr yes
Forum Newbie
Posts: 3
Joined: Thu Jul 12, 2007 5:19 pm

Post by mr yes »

I have a MySQL lets call it "thumbnail gallery"
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

Sounds like a job for some form of loop construct.
Post Reply