I have some variables stored using php and an html textarea. I would like the value from the textarea (whatever user types in) to be stored in a variable $options and pass all of the variables from the same page using . I am getting stuck on how to combine the value from the textarea with the php variables’ values. This is the code I have so far:
$price = $_GET['price'];
$title = $_GET['title'];
$retailer = $_GET['retailer'];
<textarea rows="3" id="textarea" class="input-xlarge" placeholder="Size, color, style, etc" name ="options"></textarea>
<a href = "viewcart.php?retailer=<?php echo $retailer?>" class="btn btn-success" type="submit"><i class="icon-shopping-cart icon-white"></i> Add to Cart</a>
How do I combine the three variables together?
UPDATE
Use this code, you have to add some javascript code to get value of text area.
Update your code with my code and test it.