PHP Classes

File: search.php

Recommend this page to a friend!
  Classes of Dave Smith   PHP Hulu Video   search.php   Download  
File: search.php
Role: Example script
Content type: text/plain
Description: Search example
Class: PHP Hulu Video
Generate HTML to embed Hulu videos in Web pages
Author: By
Last change:
Date: 9 years ago
Size: 1,135 bytes


Class file image Download

//manage form submission for browser history
if( !empty($_REQUEST['formSubmitted']) ){
header('location: search.php?search='.$_REQUEST['search']);

$hulu = new hulu;

$search = ( empty($_REQUEST['search']) ) ? '' : trim($_REQUEST['search']);

if( !empty(
$search) ){
        <form method="post">
                You must have downloaded Hulu's public sitemaps for search capabilities. There is over 500MB of data to search, so be patient, it will take a minute.
            <div style="margin-top: 10px;">
                Keyword: <input type="text" name="search" value="<?PHP echo (!empty($_REQUEST['search'])) ? $_REQUEST['search'] : '';?>"><br>
            <div style="margin-top:10px;"><input type="hidden" name="formSubmitted" value="1"><input type="submit" value="Get Results"> [<a href="search.php">Start Over</a>]</div>
if( !empty($hulu->huluResult) ){
'Search returned these results...<br><br>';