I'm trying to get a string value passed through the $_GET function.
url (excluding beginning url): viewarticle.php?articleid=string-value-that-needs-to-be-passed
and then echo it.
echo '<p>'.$_GET['articleid'].'</p>';
Except then it keeps returning a value of 0. If I pass an integer, it works perfectly fine, I also tried passing the string without the dashes, but to no avail. What am I doing wrong? Thank you.