Let's create the easy coding for the web form, which will be used to get URL inputs from the users. Note: the blue font color is for the code discussion or description. //Start session for captcha or security code
<?php session_start(); ?>
<!--Start the head tag as well as display the page title-->
<html> <body> <head> <title>PHP XML sitemap code generator</title> </head>
<?php
//Check if the form is submitted
if (!$_POST['submit']) {
//If the web form is not submitted, display the web form
?>
<!--This is the actual web form-->
<br />
<!--This form will submit the data to itself using PHP SELF-->
<form action="<?php echo $SERVER['PHP_SELF']; ?>" method="post"> <font face="Verdana" size="2">
<!-Below is the form content, instructions on how to use-->
<!--You can enter any content here for your own web application, a sample content is shown in the screenshot below-->
<!--The Text area HTML code which will accepts user inputs in terms of URL-->
<!--It also includes the captcha or the security code-->
<textarea name="url" rows="18" cols="120"></textarea> <br /><br /> <img src="/xmlsitemapgenerator/antibot.php" /> <br /> Type the anti-bot code above: <br /> <br /> <input type="text" name="captcha" size="10"> <br /> <br /> <input type="submit" name="submit" value="Generate Sitemap XML code"> </form> <a href="/xmlsitemapgenerator/xmlsitemapgenerator.php">Click here to reset or clear this form</a> The above is the complete web form code. An example of the completed form should look like this:
blog comments powered by Disqus |
|
|
|
|
|
|
|