nl2br script PHP Funcion is a script to receive variable string in POST method not GET method. nl2br script PHP Funcion will return the value of string accordance with real form.
nl2br script PHP Funcion. This was my experience when learning PHP to insert data that is sent from the client by using visual basic, but when I see the results in a mess. extends to the side that ignores Enter characters
examples the placement of nl2br
<?php
$sn = nl2br($_POST['sn']);
?>
<?php
$data =nl2br($_POST['data']);
?>
<?php
require("config.php");
$tablename="paper";
$entry="INSERT INTO $tablename (sn,data)
VALUES('$sn','$data')";
$result = mysql_query($entry);
if ($result) {
echo"ok:data successfully created into data_base";
}else{
echo"data failed to cratead into data_base";
}
?>
nl2br script PHP Funcion. This was my experience when learning PHP to insert data that is sent from the client by using visual basic, but when I see the results in a mess. extends to the side that ignores Enter characters
examples the placement of nl2br
<?php
$sn = nl2br($_POST['sn']);
?>
<?php
$data =nl2br($_POST['data']);
?>
<?php
require("config.php");
$tablename="paper";
$entry="INSERT INTO $tablename (sn,data)
VALUES('$sn','$data')";
$result = mysql_query($entry);
if ($result) {
echo"ok:data successfully created into data_base";
}else{
echo"data failed to cratead into data_base";
}
?>
No comments:
Post a Comment
Let's us sharing