Jump to content

Search the Community

Showing results for tags 'form action'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome to PHP Freaks
    • Announcements
    • Introductions
  • PHP Coding
    • PHP Coding Help
    • Regex Help
    • Third Party Scripts
    • FAQ/Code Snippet Repository
  • SQL / Database
    • MySQL Help
    • PostgreSQL
    • Microsoft SQL - MSSQL
    • Other RDBMS and SQL dialects
  • Client Side
    • HTML Help
    • CSS Help
    • Javascript Help
    • Other
  • Applications and Frameworks
    • Applications
    • Frameworks
    • Other Libraries
  • Web Server Administration
    • PHP Installation and Configuration
    • Linux
    • Apache HTTP Server
    • Microsoft IIS
    • Other Web Server Software
  • Other
    • Application Design
    • Other Programming Languages
    • Editor Help (PhpStorm, VS Code, etc)
    • Website Critique
    • Beta Test Your Stuff!
  • Freelance, Contracts, Employment, etc.
    • Services Offered
    • Job Offerings
  • General Discussion
    • PHPFreaks.com Website Feedback
    • Miscellaneous

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


Age


Donation Link

Found 3 results

  1. Hello all, I am very new the to php. I need help on the following problem. I have a page say reportview.php having a combobox with three options like :platform, playlist, build And I have another three pages like reportbyplatform.php, reportbyplaylists.php and reportbybuild.php. Now based on the option I have selected I want to call the respective php. for example if I select platform from the combo box then my action should be reportbyplatform.php, if I select playlist from the combo box the action should be reportbyplaylists.php and so on. code snippet <html> <body><h1> <p align="Justify"> <font color="blue"> JST Automation Report </font> </h1> <form action="?"> Show report by : <select id='viewType'> <option value="platform">platform</option> <option value="playlists">Playlists</option> </select> <br> <br> <br> <input type="submit" value=" Show Report "> </form> Please help me on this Thanks Pratul
  2. Hey, I'm very new to PHP and I'm trying to create a form that posts data to a PHP document. Here's what I have so far: form.html: <form action="phpdoc.php" method="post"> <input type="checkbox" name="fun" value="yes" />Fun <input type="checkbox" name="ent" value="yes" />Entertaining <input type="checkbox" name="inf" value="yes" />Informative <br> <input type="submit" name="formSubmit" value="Submit" /> </form> phpdoc.php: <?php if(isset($_POST['fun']) && $_POST['fun'] == 'yes') { print "Try fdajkfda."; } else { print "You aren't fun."; } ?> The objective is to create a form with checkboxes, and so far, if you select the "fun" checkbox and submit the form, it will send the data to the phpdoc.php and the form will then print something depending on your selection. The problem is, the form isn't printing anything at all. This is a really amateur problem so I thank you for whatever help you can give
  3. Can somebody help me out with a beginners PHP Quiz for School? "Use the information below to finish the input form. The user should be able to add a new name and email record into the account table and display the 10 newest records below the form." I have caught the increment typo and I think I got the form action. Is there anything I am missing? How do I get the 10 newest records to show below the form? Thanks class account{ function account(){ $this->id = ' '; $this->name = "; $this->email = "; } function find_account($id){ $sql="select ‘id‘ from ‘account‘ where ‘id‘='".$id."'"; $result = mysql_query($sql); while ($row = mysql_fetch_assoc($result)){ $row['id']; //int pk auto incerment increment $row['name']; //varchar(50) $row['email']; //varchar(50) $row['timestamp']; //varchar(15) } } } <htm|> <body> <div> <form action='#'> <form action="#" method="post"> name: <input type='text' name='account_name'> email:<input type='text' id='account_email'> <input type="button" value="submit"> </form> </div> <div style="border:solid 1px #F6O;"> Last 10 entry: </div> <div style="border:solid 1px #OOO;"> <?php echo "id: ".$account->id;?> <?php echo "name: ".$account->name;?> <?php echo "email: ".$account->email;?> </div> </body> </htm|> php_test.pdf
×
×
  • 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.