Jump to content

GET/POST


WatsonN

Recommended Posts

I have a piece of code:

	Print "<li><a href=\"biz?UID=".$info['ID'].'">'.$info['BSN']. "</a></li>";

What I want it to do is use POST instead of get but i'm mot sure how to achieve this.

Is this even possible?

This page:

<?php
$data = mysql_query("SELECT * FROM YBK_Ads WHERE `delete` = '0' ORDER BY CNL") or die(mysql_error()); 
while($info = mysql_fetch_array( $data )) { 
Print "<li><a href=\"biz?UID=".$info['ID'].'">'.$info['BSN']. "</a></li>";
Print '<li>'."    &#45;".$info['CNL'] . ", <em> " . $info['CNF'] . "</em></li>";

} 
?>

 

Page sent to:

                <div id="biz">
            <div class="toolbar">
                <h1>Contact Information</h1>
                <a href="#" class="back">Back</a>
            </div>
            <ul class="edgetoedge">
<?php

$data = mysql_query("SELECT * FROM `YBK_Ads` WHERE `UID` = '{$_GET['UID']}' and `delete` = '0'") or die(mysql_error()); 
while($info = mysql_fetch_array( $data )) { 


Print $info['BSN']; 		 
Print "Payment Status: <b>".$info['payment'] . "</b>"; ?>
				<p><li>    &#45;Contact Name:  <?php Print "<b>" . $info['CNF'] ." " . $info['CNL'] . "</b></a></li>";?>
				<?php Print "<li>    &#45;Address: <b>".$info['ADD'] . "</b></a></li>";
				Print "<li>    &#45;City: <b>".$info['CITY'] . "</b></a></li>";
				Print "<li>    &#45;State:<b> ".$info['STATE'] . "</b></a></li>";
				Print "<li>    &#45;Zip:<b> ".$info['ZIP'] . "<br></b>";
				Print "<li>    &#45;Declined Ad:<b> ".$info['DCL'] . "<br></b>";
				Print "<li>    &#45;Call Back Next Year:<b> ".$info['CB'] . "<br></b>";
				Print "<li>    &#45;Type of Ad:<b> ".$info['ToA'] . "</b></a></li>";
				Print "<li>    &#45;Ad Size:<b> ".$info['AS'] . "<br></b>";
				Print "<li>    &#45;Payment Type:<b> ".$info['PT'] . "</b></a></li>";
				Print "<li>    &#45;Check Number:<b> ".$info['CN'] . "</b></a></li>";
				Print "<li>    &#45;Buying a yearbook:<b> ".$info['BY'] . "</b></a></li>";
				Print "<li>    &#45;Ad Copy • Artwork/Photo Instructions:<b> ".stripslashes($info['ACI']) . "</b></a></li>";
				Print "<li>    &#45;Talked to Ad Manager:<b> ".$info['TAM'] . "</b></a></li>";
				Print "<li>    &#45;Left A Voicemail: <b>".$info['VM'] . "</b></a></li>"; 
} ?>
</ul>
        </div>

Link to comment
https://forums.phpfreaks.com/topic/216051-getpost/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.