I want to be able to enter a file destination, name for it, description and author, to a web page through php. The type of tables I am talking abvout are here:
<!-- m --><a class="postlink" href="http://www.x-sources.com/music.html">http://www.x-sources.com/music.html</a><!-- m -->
I don't get how you would tell it where to write it. I get that you would have input fields and use the $_POST variable for each. Heres what i have, forgive me for the horrible wrongness.
<html>
<body>
<form method="POST" action="music.php">
Title:<br>
<input type="text" name="title"><br>
Type:<br>
<input type="text" name="type"><br>
URL<br>
<input type="text" name="url"><br>
Author<br>
<input type="text" name="author"><br>
</form>
<?php
f$ = fopen("web.php");
fwrite($f, <tr><td class="textarea" height="57"><p align="center">$_POST[title] by _POST[author]<br>
$_POST[type]<br>
<a href=http://www.htmlforums.com/archive/index.php/"$_POST">Download </p></td></tr>); fclose(... as all it is is 1 loop that runs a table row
<!-- m --><a class="postlink" href="http://www.x-sources.com/music.html">http://www.x-sources.com/music.html</a><!-- m -->
I don't get how you would tell it where to write it. I get that you would have input fields and use the $_POST variable for each. Heres what i have, forgive me for the horrible wrongness.
<html>
<body>
<form method="POST" action="music.php">
Title:<br>
<input type="text" name="title"><br>
Type:<br>
<input type="text" name="type"><br>
URL<br>
<input type="text" name="url"><br>
Author<br>
<input type="text" name="author"><br>
</form>
<?php
f$ = fopen("web.php");
fwrite($f, <tr><td class="textarea" height="57"><p align="center">$_POST[title] by _POST[author]<br>
$_POST[type]<br>
<a href=http://www.htmlforums.com/archive/index.php/"$_POST">Download </p></td></tr>); fclose(... as all it is is 1 loop that runs a table row