Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <script src="<?=base_url();?>js/jquery-1.2.6.min.js" type="text/javascript"></script>
- <script type="text/javascript">
- function bajar(e){
- $.ajax({
- type: "POST",
- url: "/buscar/busqueda",
- data: "elemento=Maria",
- success: function(datos){
- $("#contenedor").html(datos);
- }
- });
- };
- $(document).ready(function(){
- $("#busqueda").bind("submit", bajar);
- });
- </script>
- <title><?=$title;?></title>
- </head>
- <body>
- <!--Comentario en HTML -->
- <h1><?=$cabecera;?></h1>
- <?=form_open(’buscar/busqueda‘,array(’id‘ => ‘busqueda‘));?>
- <br/>
- <input type="text" name="elemento" value="<?php echo set_value('elemento'); ?>" size="50" />
- <input type="submit" id="boton" value="Buscar"/>
- <div id="contenedor">
- <?
- if( is_array($users)):
- foreach ($users as $row){
- echo $row['id'];
- }
- else:
- echo "No results";
- endif;
- ?>
- <br/></div><BR/>
- Esta pagina cargo en {elapsed_time} segundos.
- </body>
- </html>
Add Comment
Please, Sign In to add comment