Two things I am not sure about, and would appreciate an answer to.
1) This may be simple. When creating a form to insert data into a table, I
seem to loose all the returns when data is inputted. I use the following
script:
page1.php:
<form action="page2.php">
<textarea name="textbox"></textarea>
<input type="submit">
</form>
page2.php:
<?php
include("dblogin.php"); // Loads database password, username and opens
database line.
$query = "INSERT INTO table1 (column1) VALUES ('$textbox')";
$result = mysql_query($query);
?>
All the carrige returns dissappear, meaning i have to use <br> or the <p>
tags, but this is not possible for users of a site to have to type in <br>
instead of return. Any ideas?
2) Even easier. Does anyone know where there is a good tutorial for creating
..png images automatically from data.
Many thanks in advance
Shaun
http://www.shaund.com - My Homepage
http://www.green-cabbage.co.uk - My Plymouth Argyle Site (UK Soccer Team)