Sunday, 12 October 2008

Extending PHP code lines/files

Extending the code to process all form fields, title, publisher and book.
NB: The extension lines are in BOLD


import_request_variables("P","mypost_");

/*The next lines will print the posted form's values to the client browser*/

echo $mypost_title;
echo'
';
echo'$mypost_price;
echo'
';
echo $mypost_publisher;
echo'
';
echo $mypost_book;
echo'
';

/*The next lines will print the posted form's values to the client browser*/

echo$_POST['title'];
echo'
';
echo$_POST['price'];
echo'
';
echo$_POST['publisher'];
echo'
';
echo$_POST['book'];
echo'
';

?>

No comments: