Need help on project for school
Posted by: thisisforclassdontjudgeme (199.36.15.---)
Date: June 28, 2013 12:33AM

For class we are supposed to create an ABCD table and then create a button that flips the order of the table. We have to use PHP inside of the webpage. This is what I have so far. (I dont know much Javascript yet) sad smiley

<HTML>
<Header>
</Header>
<script>
function myFunction()
{
document.getElementById( "demo" ).innerHTML="";
}
</script>
<body>
<table border="2">
<tr>
<td> A </td>
</tr>
<tr>
<td> B </td>
</tr>
<td> C </td>
<tr>
<td> D </td>
</tr>
</table>
</n>
</body>
<input type='button' onclick='myFunction()' value='Reverse'/>

<Title>
</Title>
</HTML>



Edited 1 time(s). Last edit at 06/28/2013 12:36AM by thisisforclassdontjudgeme.

Options: ReplyQuote
Re: Need help on project for school
Posted by: dirtymike (---.midco.net)
Date: June 28, 2013 01:10AM

It would be better to post this on a PHP forum, I believe.

Send me a private message--I can give you some tips for handling this with PHP, though.

Options: ReplyQuote


Sorry, only registered users may post in this forum.