Jump to content

Search the Community

Showing results for tags 'FORMS'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • W3Schools
    • General
    • Suggestions
    • Critiques
  • HTML Forums
    • HTML/XHTML
    • CSS
  • Browser Scripting
    • JavaScript
    • VBScript
  • Server Scripting
    • Web Servers
    • Version Control
    • SQL
    • ASP
    • PHP
    • .NET
    • ColdFusion
    • Java/JSP/J2EE
    • CGI
  • XML Forums
    • XML
    • XSLT/XSL-FO
    • Schema
    • Web Services
  • Multimedia
    • Multimedia
    • FLASH

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Languages

  1. betokahn

    Just Starting Php

    Hi all, I saw this code of a form that uses a PHP script. It was in a book, where i am learning PHP, but it didn't worked. What i mean is that the form was ok and when i clicked the button i went to another page of the PHP file, but then there was just the messages of echo command without the variable parameters, or they were unchanging, maybe there is something wrong in the syntax? I use linux, do i need to set permissions in the files?(now they are rw for user, group and others) <html><form method=post action=processa.php>Seu Nome:<input type=text name=edNome><br><br>Vinho preferido:<input type=radio name=rgVinho value=br checked>Vinho Branco<input type=radio name=rgVinho value=mr >Merlot<input type=radio name=rgVinho value=tt >Tinto<br><br>Hora ideal para beber:<input type=checkbox name=bebi[] value=m >Manhã<input type=checkbox name=bebi[] value=a >Almoço<input type=checkbox name=bebi[] value=j >Jantar<input type=checkbox name=bebi[] value=q >A qualquer hora<br><br><input type=submit value="Click aqui"></form></html> This is in the file processa.php:<?phpswitch ($rgVinho) {case 'br': $msgVinho='Ovinho branco é bom para o coração';break;case 'tt':$msgVinho='O vinho tinto é bom para o sangue';break;default: $msgVinho='O merlot é excelente';break;} $qtsVezes = count($bebi);if ($qtsVezes <=1)$msgVezes='Você bebe moderadamente';elseif ($qtsVezes > 1 && $qtsVezes < 4 )$msgVezes='é melhor ir com calma!';else $msgVezes='Melhor você procurar um centro de AA.'; echo "Como vai $edNome?";echo "$msgVinho $msgVezes";?> Thank you
  2. na_da

    Html Forms

    Apologies if this is in the wrong section! I am sorting out a site that has a t&c section before the user enters the website, basically people need to accept the terms and conditions of the site - then enter their email address, when the user hits submit the email they enter needs to be sent to my email address, and then the page redirects to the home pageI have basically got it in essence the only thing i cant seem to make it do is send the email address they enter to my email address - this is the code I have so far:<----------form method="post" onsubmit="this['redirect'].value = this['redirect'].value + '?EMAIL=' + this['email'].value;" action="/?page_id=4"><div align="left"><font face="Verdana, Arial, Helvetica, sans-serif"> Email:<input type="text" size="20" name="email"><input type="submit" name="submit" class="home-sections" value="Accept"><input type="hidden" value="/?page_id=4=" name="redirect"><input type="hidden" value="myemail@myemail.com" name="mailto"><br></font> </div></form-----------> If anyone can help on point me in the right direction I would really appreciate it.
×
×
  • Create New...