Current location: Hot Scripts Forums » Programming Languages » PHP » cannot display the complete data


cannot display the complete data

Reply
  #1 (permalink)  
Old 07-03-03, 10:49 PM
najmun najmun is offline
Newbie Coder
 
Join Date: Jun 2003
Location: malaysia
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
cannot display the complete data

hi guys.

gee. i have been wondering around for 2 whole days figuring how can I get the full detail about the passing data from the previous page. data that contains '&' , '.' cannot display the data after it. but data w/out hat sign can be succesfuuly displayed


this is cdeleteing.php


require_once("db_connect.php");
$query = 'select CUS_Name from CUSTOMER order by CUS_Name';
$q_result = mysql_query($query);

if(!mysql_num_rows($q_result) == 0){
echo ("<b></b><br>");
for($i=0;$i<mysql_num_rows($q_result);$i++){
$field = mysql_result($q_result, $i, "CUS_Name");
echo ($i+"1".")"."&nbsp"."<a href=\"/cms/admin/had_cdelete.php?field=$fie
ld&username=$uname\">".$field."</a><br>");}
}
else
echo "There's no customer's company in the database yet.";

?>
(I only want todisplay the customer name)

this is cdelete.php that will refer to cdeleting.php

ARE YOU SURE YOU WANT TO DELETE:</b><br><br>
<?php print ("$cus_name") ?><br><br>
<tr><td>
<form action="had_cdelete1.php" method="post">
<input name= "cus_name" type="hidden" value="<?php print("$cus_name") ?>">
<a href="had_cdelete1.php">
<input type="submit" name="option" value=" YES "></a></form>
<form action="had_cinfo.php" method="post">
<a href="had_cinfo.php">
<input type="submit" name="option1" value=" NO "><br>
</form></td></tr></a>


guys what's d' prob?????
Reply With Quote
  #2 (permalink)  
Old 07-04-03, 02:53 AM
Stefan's Avatar
Stefan Stefan is offline
Junior Code Guru
 
Join Date: Jun 2003
Location: Utrecht, The Netherlands
Posts: 599
Thanks: 0
Thanked 0 Times in 0 Posts
when passing information through to the next page use GET (links and method="get" in forms) make sure you urlencode() the information that gets passed along.
Reply With Quote
  #3 (permalink)  
Old 07-04-03, 02:52 PM
ChristGuy ChristGuy is offline
Operations Support Develo
 
Join Date: Jun 2003
Location: Rivonia, South Africa
Posts: 111
Thanks: 0
Thanked 0 Times in 0 Posts
greetingz...

Another thing... at the begining of your script add the following...
PHP Code:

  if (ISSet($_REQUEST["cus_name"))

  {
    
$cus_name $_REQUEST["cus_name"];
  }
  else
  {
    
$cus_name '';  // set variable to nothing or you could...  Die("Error calling script")
  

then You'll know that the variable has a value...
__________________
Till We Meet Again...
Clifford W. Hansen
Aspivia (Pty) Ltd

"We Have Seen Strange Things Today!" Luke 5:26
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Formmail Script Fix - Cant display multiple list selections.. zamen PHP 3 05-02-04 09:59 AM
If date is less than today do not display jimthepict ASP 5 10-19-03 10:43 PM
Print data by date perleo PHP 2 08-09-03 09:35 AM
Manipulating arrays for display in HTML madsurfer007 PHP 3 08-07-03 08:26 PM
display data sasi ASP 6 08-06-03 05:52 PM


All times are GMT -5. The time now is 09:05 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.