php - Pass variables in url using POST -
php - Pass variables in url using POST -
assuming have 2 pages (page1 , page2), there variable values want send page2 without using $_get
function instead $_post
through url. illustration on page1
<?php $name="dman"; $id="12"; $level="122"; ?> <a href="page2.php">goto page2</a>
on page 2, want receive variable values using post.
name:dman id: 12 level:122
update
please trying achieve, prevent showing items beingness transmitted 1 page another, when url been used. read blogs , like, using post workaround can help accomplish this.on contrary if there way avoid using "?id=$id&name=$name"
on url still receive variables on next page, grateful know. helping
you need utilize method if want pass parameters in url. post different method , it's not possible represent or reference post info in url.
some reading on definition , difference between post , get: http://www.w3schools.com/tags/ref_httpmethods.asp
php
Comments
Post a Comment