php

php India
  • 13 years ago

    sir,

       i want to know how can i post selected values in check boxs to new page  

  • 13 years ago
    well maybe you could elaborate your question..

    if im not mistaken i think this is what you should do... (based on the little infor you gave)
    first page:
    <form action="newpage.php" method="post">
        <input type="checkbox" name="BookName" value="Batman" /> Batman<br />
        <input type="checkbox" name="BookName" value="Spiderman" /> Spiderman<br />
        <input type="checkbox" name="BookName" value="Superman" /> Superman<br />
        <input type="submit" value="Submit">
    </form>

    in the
    newpage.php
    $BookName=$_POST['BookName'];
    echo $BookName;

    i guess this is what you are looking for...(i hope.)

















Post a reply

Enter your message below

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Hofstadter's Law: It always takes longer than you expect, even when you take into account Hofstadter's Law.”