Jump to content

voip03

Members
  • Posts

    693
  • Joined

  • Last visited

Posts posted by voip03

  1. <form action="test.php" method="post">
        <input type="checkbox" name="apple" value="apple">apple
        <br>
        <input type="checkbox" name="orange" value="orange">orange
        <br>
        <input type="submit">
    </form>
    
    <?
    foreach ($_POST as $key => $value )
    echo "<br>$key is checked";
    ?>
    
    

    Hope you can get the idea

  2. <?php
    
    $s = "SELECT nome_curso, imagem_curso FROM cursos ORDER BY nome_curso";
    $r =  mysql_query($s);
    $n =  mysql_num_rows($r);
    
    if($n !=0)
    {
    	echo"<table width='750' border='1' cellspacing='0' cellpadding='1'><tr>";
    	while($row = mysql_fetch_assoc($r))
    	{
    
        		echo "<td>". $row['nome_curso']."</td>";
        		echo "<td><img src='imagepath/images/". $row['imagem_curso'] ." ></td>";
    	}
    		echo "</tr></table>";
    
    }
    ?>
    

  3. Here is my actual code. I need to insert the

    'module_viewpaginated.php?page=1'

    echo "<p><b>View All</b> | <a href='module_viewpaginated.php?course=".$courseid."&program=".$program." ' target='lama'>View Paginated</a></p>";

    To Where?

  4. 
    <?php 
       $from    = "PHP Freak";
       $headers = "MIME-Version: 1.0\r\n";
       $headers.= "Content-type: text/html; charset=iso-8859-1\r\n";
       $headers.= "From: $from\r\n";
    
       $to = "pato.llaguno@gmail.com"; 
       $subject = "Email send!"; 
       $body = "Hi,Email working?"; 
       if (mail($to, $subject, $body,$headers)) 
      {   echo("<p>Message successfully sent!</p>");  } 
      else 
    {   echo("<p>Message delivery failed...</p>");  }
    
    
    ?>
    
    
    

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.