Jump to content

[SOLVED] POST issue???


Halisco

Recommended Posts

I cant figure out why the submit button in green works for this but not the link in the red font .. ???

 

here is my script

 

 

<?

include ("./settings.php");

$link = mysql_connect($host,$user,$password);

mysql_select_db("$base");

?>

 

<head>

<link rel="stylesheet" type="text/css" href="styles.css">

</head>

<body>

 

<table class="sample" cellspacing="0" cellpadding="0" spacepadding="0" border="0" width="100%"><tr>

<tr>

    <th scope="col" >Project</th>

    <th scope="col" >First Name</th>

    <th scope="col" >Last Name</th>

<th scope="col" >Classification</th>

<th scope="col" >Formeman</th>

<th scope="col" >Description</th>

<th scope="col" >Edit</th>

</tr>

 

 

<?

 

 

$result=mysql_db_query($base,"select * from ".$basesites."  WHERE FirstName LIKE '%$SearchField%' OR LastName LIKE '%$SearchField%' ORDER BY LastName" ,$link);

if ($result > 0)

{

$num4=mysql_num_rows($result);

if($num4!=0)

        {

        $n=0;

        while ( $n<$num4 )

                {

$counts=($counts + 1);

$BgStyles;

 

if ($counts % 2 == 0 )

{

 

//your number is even

$thclass="spec";

$tdclass="";

 

}

else

{

//your number is odd

$thclass="specalt";

$tdclass="alt";

}

 

 

  $ID=mysql_result($result,$n,"IDENT");

  $FirstName=mysql_result($result,$n,"FirstName");

  $n++;

  if (!$size) $size="0 kb";   

?>

 

  <tr>

 

    <td scope="row" class=<? echo $thclass; ?>><? echo $FirstName; ?></a></td>

 

    <td width="130"><center>

    <form action="profile.php" method="post" name="Testing" target="mainFrame">

    <input type="text" name="ID" value="<? echo $ID; ?>">

    <a  href="javascript:document.Testing.submit()"><img border="0" src="images/image.png" alt="image"></a>   

    <input type="submit" name="sumbit" value="<? echo $ID; ?>">

    </form>

</center></td>

    </tr>

</tr>

 

 

 

<?

  }

  }

  echo "</table>";

}

?>

 

</body>

</html>

 

Link to comment
https://forums.phpfreaks.com/topic/145167-solved-post-issue/
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.