Login   Register  
PHP Classes
elePHPant
Icontem

File: index.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Sarfraz Ahmed  >  PHP Save Complete HTML Page  >  index.php  >  Download  
File: index.php
Role: Auxiliary script
Content type: text/plain
Description: index.php
Class: PHP Save Complete HTML Page
Save HTML pages complete with images, CSS and JS
Author: By
Last change:
Date: 2013-10-18 03:56
Size: 946 bytes
 

Contents

Class file image Download
<!DOCTYPE html>
<html>
<head>
    <title>htmlSaveComplete DEMO</title>
</head>
<body>

    <?php
        
if (isset($_GET['e'])) {
            echo 
$_GET['e'] . '<hr>';
        }
    
?>
    
    <?php
        
if (isset($_GET['s'])) {
            echo 
'<a href="output.html" target="__blank">Visit Saved Page</a>' '<hr>';
        }
    
?>    


    <form action="saveCompletePage.php" method="post">
        <p>
            <label for="url">Enter URL</label>
            <input type="url" id="url" name="url" required>
        </p>
        <p>
            <label for="content">Fetch Main Content Only</label>
            <input type="checkbox" name="content" id="content">
        </p>
        <p>
            <label for="javascript">Keep Javascript</label>
            <input type="checkbox" name="javascript" id="javascript">
        </p>
        <p>
            <label for="compress">Compress Output</label>
            <input type="checkbox" name="compress" id="compress">
        </p>
        
        <input type="submit" name="submit" value="Fetch Complete Page">
    </form>



</body>
</html>