Results 1 to 2 of 2

Thread: How can I pass a value to "send=" on button form action click?

  1. #1
    Join Date
    Jul 2013

    How can I pass a value to "send=" on button form action click?

    HTML Code:
    <form action='page.php'><button type='submit'>click</button> <input type='checkbox' required></form>
    When i click the button i get to page.php?send=
    How can i give "send=" a value?
    or how can I give the URL a own parameter? for example page.php?value= (I tried do this with php but it didnt work, i still got "page.php?send=" instead of "page.php?value=")

  2. #2
    Join Date
    Dec 2012
    You should make yourself familiar with the basics of forms, e. g. here:
    Regarding your special question:
    You need to
    • assign a name to your checkbox
    • assign a value to your checkbox

        <form action='testget.php'>
            <button type='submit'>click</button>
            <input type='checkbox' name="cb" value="valcb">
    Having done so, if the checkbox is checked, the URL looks like this:
    If the checkbox is not checked, the URl looks like this:

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center