Tags » Twix

Pass variable value to URL

I am using below code to get paramteres from the URL.

<form action="<?php echo $_SERVER['PHP_SELF'];?>" method="post" role="search">
    <select name="seme" id="seme">
        <option value="sem1">Semester-1</option>
        <option value="sem2">Semester-2</option>
        <option value="sem3">Semester-3</option>
        <option value="sem4">Semester-4</option>
    </select>
    <input type="text" name="find" id="find" placeholder="Enter worksheet / file name..." />
    <button type="submit" class="btn btn-theme">Search</button>
</form>

<?php
if ($_SERVER["REQUEST_METHOD"] == "POST") {
    // collect value of input field
    $name = $_REQUEST['find'];
    $sem = $_REQUEST['seme']; 
    if (empty($name)) {
        echo "Name is empty";
    } else {
        echo $name; echo $seme;
    }
}
?>
… 45 more words
Recent Questions - Stack Overflow

Chocolate Troubles: Cocoa Shortage Crisis

DALLAS, Texas — WARNING! What you’re about to hear may be hard to swallow, especially for chocolate lovers everywhere. The world is officially running out of chocolate! 152 more words

NewsFix

Twix Gingerbread

Despite the fact that I’m doing P90, I can’t pass up some of these holiday sweets and treats. Case in point: gingerbread-flavored Twix! The packaging has a nice seasonal touch. 204 more words

Food

A few words per picture.

Happy Friday! It’s been a long week and I’m happy to welcome in the weekend. :-)

I can’t get enough pancakes…


Oatmeal…


and this loaded sweet potato meal. 136 more words

Food

Breakfast decisions

About 10:45 this morning, after completing some work online, I thought Hm, maybe it’s time for breakfast.

I’ll make eggs with goat cheese on toast. 69 more words

Life

How to stretch the video in html5

I am using these code to set video in slider.

<video id="vid" preload="auto" loop="" autoplay="" class="slidesjs-slide" slidesjs-index="0" style="position: absolute; top: 0px; left: 0px; width: 100%; z-index: 10; -webkit-backface-visibility: hidden; display: block;">
    <source src="path to video" type="video/mp4">
    Your Browser doesn't support video. 110 more words
Recent Questions - Stack Overflow

What's new?

Since consumers are everyday becoming more and more demanding and fed up with current flavors, Mars Inc. North America decided to launch new products which will be available in 2015. 575 more words
Strategy