Page 1 of 1

form to insert HTML

Posted: Thu Jul 12, 2007 5:40 pm
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.

Posted: Thu Jul 12, 2007 5:48 pm
by mr yes
I have a MySQL lets call it "thumbnail gallery"

Posted: Thu Jul 12, 2007 6:54 pm
by RobertGonzalez
Sounds like a job for some form of loop construct.