[php-objects] I need a hand with my php form

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Newbie!! Could you please take a look and tell me what is wrong?

<html>
<head>
    <title>Web quest</title>
</head>
<body bgcolor="#FFFFFF"> 
<?php

if ($submit == 'enviar')
{

    $to = "antonioff@educastur.princast.es";
    
    $subject = "Answers to webquest";
    
    $message = "$nombre ($email)\n\n$comentarios\n";
  
    $headers = "From: $nombre\nTo: Centro\nReply-To: $email";
  
    if (mail($to, $subject, $message, $headers))
    {
        
        print "<p>Your form has been sent.</p>";
    }
    else
    {
        
        print "<p>Your form hasn't been sent.</p>";
        print "<p><a href=javascript:history.back()>Volver</a></p>";
    }
}

else
{
?>



<form action="<?php echo $PHP_SELF ?>" method="post">
<div align="center">
    <p><strong><font size="6">The News </font></strong></p>
    <p>&nbsp;</p>
    <p align="left"><strong><font size="3">Nombre</font></strong> 
      <input name="Name" type="text" size="50">
    </p>
    <p align="left">E-mail (opcional) 
      <input name="e-mail" type="text" size="50">
    </p>
  </div>
  <p>1. Find the top story in The News of the World</p>
  <p>
    <input name="1" type="text" id="1" size="100">
  </p>
  <p>2. Find a webcam of Edinburgh Castle in BBCi. Where is the view 
from?</p>
  <p>
    <input name="2" type="text" size="100">
  </p>
  <p>3. Find the common top story to most of the broadsheets for 
today.</p>
  <p>
    <input name="3" type="text" size="100">
  </p>
  <p>4. In the audio news section of the BBCi find today&#8217;s 
headlines.</p>
  <p>
    <textarea name="4" cols="70" rows="5"></textarea>
  </p>
  <p>5. In the Comment section of The Times find the values that 
Europe and America 
    are supposed to share.</p>
  <p>
    <textarea name="5" cols="70" rows="5"></textarea>
  </p>
  <p>6. In The Guardian there is a review on The Pianist. Give 
details of cast, 
    director and a brief summary.</p>
  <p>
    <textarea name="6" cols="70" rows="5"></textarea>
  </p>
  <p>7. The Observer is owned by which other newspaper?</p>
  <p>
    <input name="7" type="text" size="100">
  </p>
  <p>8. Under which section of The Sun can you find a story about 
Madonna?</p>
  <p>
    <input name="8" type="text" size="100">
  </p>
  <p>9. What newspaper is running a contest giving a poetry book for 
Valentine&#8217;s? 
    What authors does this book feature?</p>
  <p>
    <input name="9" type="text" size="100">
  </p>
  <p>10. In The Independent find an article entitled &#8220;It's 
time to revise 
    your study habits&#8221; and give a brief summary.</p>
  <p> 
    <textarea name="10" cols="80" rows="5"></textarea>
  </p>
  <p>11. Why do you think tabloids are also known as &#8220;red 
tops&#8221;?</p>
  <p>
    <input name="11" type="text" size="100">
  </p>
  <p>12. Who does film reviews in The Mirror? What does he think of 
&#8220;The 
    Good Girl&#8221;?</p>
  <p>
    <textarea name="12" cols="80" rows="5"></textarea>
  </p>
  <p>13. In Loot find a house to rent in Muswell Hill, London for 
less than &pound;250 
    a week.</p>
  <p>
    <textarea name="13" cols="80" rows="5"></textarea>
  </p>
  <p></p>
<table>
<tr>
    <td colspan="2"><input type="submit" name="submit" 
value="enviar"></td>
</tr>
</table>

</form>

<?
}
?>

</body>
</html>





Look here for Free PHP Classes of objects:
http://phpclasses.UpperDesign.com/
To unsubscribe from this group, send an email to:
php-objects-unsubscribe@egroups.com

 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 



[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux