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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.