Regards,
Help...
Moderator: General Moderators
-
Paddy
- Forum Contributor
- Posts: 244
- Joined: Wed Jun 11, 2003 8:16 pm
- Location: Hobart, Tas, Aussie
- Contact:
A simple example
Code: Select all
<?php
$somevar = $_POST['somevar'];
$somevar = str_replace(" ", "<b>", $somevar);
?>
<html>
<head>
</head>
<body>
<?php echo($somevar); ?>
<form action="temp.php" method="post">
<input type="text" name="somevar">
<input type="submit" name="submit" value="Enter">
</form>
</body>
</html>Code: Select all
<form name="post news" method="post" action="post_news_process.php">
<p>Title : <input type="text" name="title">
<br>
Author : <input type="text" name="author" value="<?php echo $var; ?>" DISABLED>
<input type="hidden" name="author" value="<?php echo $var; ?>">
<br>
News :
<br>
<textarea name="news" cols="40" rows="6"></textarea></p>
<p>
<input type='submit' style='font:10pt Verdana, Arial, Helvetica, sans-serif; border:1 solid #FFFFFF; cursor:hand; background:#000000; color: #FFFFFF; ' value="Sign Book!">
</p>
</form>
</body>
</html>?>