We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 44231
    • 126 Posts
    hi there I have a question

    how can you get the the value of a <input type="text"> and use it in the snippet?

    thanks in advance!
      • 36996
      • 211 Posts
      I assume your input is part of a form, if so then you can use
      $_request['input_name']
        • 44231
        • 126 Posts
        for example:

        <form action="" method="POST">
        <input type="text" value="sample" name="sample" />
        </form>

        Snippet:

        name = $_POST['sample'];


        like that?
          • 36996
          • 211 Posts
          yes, but you need to submit the form so the $_post variable will be available.