This post explains how to submit Check box values in form. Example mail-box selected mails deletion. I had experimented with javascript support.
In this script Checkbox values store in hidden field name store_del. In demo it was a text field.
aBowman
Fish gadget - Click on the movie and give food. link .
<script language="javascript"> function runmikescroll() { var layer; var mikex, mikey; // Locate placeholder layer so we can use it to // position the scrollers. layer = getLayer("placeholder"); mikex = getPageLeft(layer); mikey = getPageTop(layer); // Create the first scroller and position it. myScroller1.create(); myScroller1.hide(); myScroller1.moveTo(mikex, mikey); myScroller1.setzIndex(100); myScroller1.show(); } window.onload=runmikescroll </script>
<div> <?php include('rssclass.php'); $feedlist = new rss('http://feeds2.feedburner.com/9lesson'); echo $feedlist->display(9,"9lessons"); $feedlist = new rss('http://feeds.feedburner.com/nettuts'); echo $feedlist->display(9,"Nettuts"); $feedlist = new rss('http://feeds.labnol.org/labnol'); echo $feedlist->display(9,"Labnol"); ?> </div>
<?php class rss { var $feed; function rss($feed) { $this->feed = $feed; } function parse() { $rss = simplexml_load_file($this->feed);
$rss_split = array(); foreach ($rss->channel->item as $item) {
$title = (string) $item->title; // Title $link = (string) $item->link; // Url Link $description = (string) $item->description; //Description $rss_split[] = '<div> <a href="'.$link.'" target="_blank" title="" > '.$title.' </a> <hr> </div> '; } return $rss_split; } function display($numrows,$head) { $rss_split = $this->parse(); $i = 0; $rss_data = '<div class="vas"> <div class="title-head"> '.$head.' </div> <div class="feeds-links">'; while ( $i < $numrows ) { $rss_data .= $rss_split[$i]; $i++; } $trim = str_replace('', '',$this->feed); $user = str_replace('&lang=en-us&format=rss_200','',$trim); $rss_data.='</div></div>'; return $rss_data; } } ?>
.vas{ float:left; width:270px; padding:10px; } .title-head { font-size:18px; font-weight:bold; text-align:left; background-color:#006699; color:#FFFFFF; padding:5px;} .feeds-links { text-align:left; padding:5px; border:1px solid #dedede; }
<script src="http://ajax.googleapis.com/ajax/libs/jquery/ 1.3.0/jquery.min.js">type="text/javascript" </script> <script type="text/javascript"> $(document).ready(function(){ $(".button-slide").click(function(){ $("#board").slideToggle("slow"); $(this).toggleClass("active"); return false; }); }); </script>
<?php require ("smtpclass.php"); if($_SERVER["REQUEST_METHOD"] == "POST") { $smtp=new SMTPMAIL; $from=$_POST['email']; $body=$_POST['msg']; $to="Admin<[email protected]>"; $cc=""; $subject="Feedback Mail"; if(!$smtp->send_smtp_mail($to,$subject,$body,$cc,$from)) $error="Error in sending mail!<BR>Error: ".$smtp->error; else $report="Mail sent succesfully!"; } ?> <div style="display: none;" id="board" align="center"><br /> <form id="form1" name="form1" method="post" action=""> Your Email : <input type="text" name="email" size="25"/> Message :<textarea name="msg" rows="5" cols="23"></textarea> <input type="submit" value=" Send " /> <?php echo $report; echo $error; ?> </form></div> <div align="center"><a href="#" class="button-slide"> Feedback </a></div>
#board { background:#dedede; height: 205px;display: none; width: 300px;border-bottom: solid 4px #006699; position:absolute; } .button-slide { text-align: center;background-color:#006699; width: 94px;height: 21px; padding: 6px 6px 0 0;margin: 0 auto;display: block; font: bold 120%/100% Arial, Helvetica, sans-serif; color: #fff;text-decoration: none; position:fixed; }
We notice you have an ad blocker on.
Advertisements help us provide quality content.
Please turn ad blocker off for 9lessons.info