javascript - How to get the after question mark value PHP echo -


i need value of add_cart after question mark?

echo "<a  href='index.php?add_cart=<?php echo $pro_id; ?>' name='shto' class='sp' '><button style='float:right;'>cart</button></a>  "; 

something

$value = add_cart; 

try like:

$value = 4544545; //the item number echo "<a  href='index.php?add_cart=$value' name='shto' class='sp' '><button style='float:right;'>cart</button></a>  "; 

and in index.php value with:

$valuefromaddcart = $_get['add_cart']; 

Comments

Popular posts from this blog

Java 8 + Maven Javadoc plugin: Error fetching URL -

css - SVG using textPath a symbol not rendering in Firefox -

php - Google Calendar Events -