<html>
<body>
// Make the URL rewriter affect <a href> and <form> tags
ini_set('url_rewriter.tags','a=href,form=');
// Add a variable
output_add_rewrite_var('var', 'value');
// Output a link and a form
echo '<a href="#">This link\'s URL will have a variable</a>';
echo '<form>';
echo '<p>This form will have a hidden input</p>';
echo '<input type="text" name="hello">';
echo '</form>';
</body>
<!-- Mirrored from www.w3schools.com/php/phptryit.asp?filename=tryphp_oc_output_add_rewrite_var by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 21 Dec 2022 17:22:57 GMT -->
</html>