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!
for example:
<form action="" method="POST">
<input type="text" value="sample" name="sample" />
</form>
Snippet:
name = $_POST['sample'];
like that?
yes, but you need to submit the form so the $_post variable will be available.