Beispiel #1
0
function billing_deletetariff($tariff)
{
    setVal($login, "deltariff", $tariff);
}
Beispiel #2
0
mysqli_set_charset($con, "utf8");
//MAKES SURE THE CHARACTER ENCODING OF THE DATA IS UTF-8
//THE COMMON WORDS ARE SET HERE SO THAT WE CAN REMOVE THEM WHEN SETTING THE VALUE OF THE PASSED INFORMATION
$commonWords = 'and,the';
// GET USER INPUT VALUES & REMOVE COMMON WORDS
$title = removeCommonWords($commonWords, setVal('title'));
$author = removeCommonWords($commonWords, setVal('author'));
$publicationYear = removeCommonWords($commonWords, setVal('Year'));
$publisher = removeCommonWords($commonWords, setVal('publisher'));
$citationsMin = removeCommonWords($commonWords, setVal('citationsMin'));
$citationsMax = removeCommonWords($commonWords, setVal('citationsMax'));
$keywords = removeCommonWords($commonWords, setVal('keywords'));
// GET SORT SELECTION VALUES
$sortSelection = setVal('sort');
// GET MAX PAPERS TO SHOW
$maxPapers = setVal('noOfResults');
// FUNCTION TO CHOOSE CORRECT QUERY, SORT IF NECESSARY, LIMIT IF NECESSARY
$query = chooseQuery() . sortBy($sortSelection) . maxNoOfPapers($maxPapers);
//$keywords = keywordCount($title);
//SETS THE SEARCH TERM ENTERED (TITLE) TO BE THE COOKIE VALUE
if (!isset($_COOKIE['Query'])) {
    setcookie("Query", $title);
}
//IF THE COOKIE IS SET THEN MAKE A LINK TO THE MAIN PAGE FOR THE USER TO SEE THEIR PREVIOUS SEARCH TERMS
if (isset($_COOKIE['Query'])) {
    setcookie("Query", $title);
}
/*
//CREATES A TABLE FOR THE RESULTS OF THE SEARCH TERMS ENTERED
//ECHOING OUT THE AUTHORS, TITLE, ARTICLE URL AND SUMMARY
//IF CANNOT CONNECT TO THE DATABASE THEN DISPLAY A MYSQLI ERROR
Beispiel #3
0
                    Male  <input type="radio" name="sex" value= "male"<?php 
setChecked($formdata, 'sex', 'male');
?>
 />
                    Female<input type="radio" name="sex" value="female" <?php 
setChecked($formdata, 'sex', 'female');
?>
 />
                    <p>
                        Do you like this Website?
                        <input type="radio" checked="checked" name="answer" value="Yes" /> Yes
                        <input type="radio" name="answer" value="No" />No
                    </p>
                    <p>Whats your favourite feature? <select name="favourite_feature">
                        <option>Images</option>
                        
                        <option>Design</option>
                        
                        <option selected="selected">Content</option>
                    </select></p>
                    <p>Feedback:
                        <textarea name="feed" id="address" placeholder="Enter feedback here"><?php 
setVal($formdata, 'feed');
?>
</textarea></p>
                    <!--<input type="button" value="Submit Form"/>-->
                    <button type="submit">Send your message</button>
        </form>
        
    </body>
</html>