may88 Posted March 24, 2010 Share Posted March 24, 2010 For a homework assignment I have to replace html files from a previous homework with a php, I have been off sick for four weeks so need to catch up!!! any tips would be good, or links that would help me understand more,what I have to do is Replace the list links to the 5 albums by a form with a drop-down selection and a Submit button. 2. Replace the 5 HTML files for the 5 albums with a single PHP file. here is my list link code file <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <link rel="stylesheet" type="text/css" href="pop_albums.css"/> <title>pop albums</title> </head> <body backround = "02_15_07_ipod_longo.jpg"> <div id="content"> <h1 id="album_header">pop albums</h1> <ul id="albums"> <li><a href="Madonna.html">Madonna - American Life</a></li> <li><a href="Metallica.html">Metallica - St. Anger</a></li> <li><a href="Otep.html">Otep - Sevas Tra</a></li> <li><a href="Patti_Smith.html">Patti Smith - Easter</a></li> <li><a href="Busta_Rhymes.html">Busta Rhymes - The Big Bang</a></li> <ul> </div> </body </html> Quote Link to comment Share on other sites More sharing options...
oni-kun Posted March 24, 2010 Share Posted March 24, 2010 preg_match, preg_replace are obvious things to look into. If you do not know how to match against links (or required seed) there are infinite numbers of tutorials out there. You should brush up and do your own work. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.