PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > comp.lang.php > herf link to php page
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
herf link to php page

Réponse
 
LinkBack Outils de la discussion
Vieux 29/04/2008, 17h39   #1
BigZero
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut herf link to php page

Hello ,

hey i need to send some information to php file that is i have more
then one ip address in my page that all r herf liked to show.php that
when u click on the any of the ip the show.php will display
i want to send any ip that the link is selected with click the link to
show.php
how do this thing,
well i have an table with the radio button and it's working fine but i
m try that with single link that is herf link. some body ...



Thanks
VM
  Réponse avec citation
Vieux 29/04/2008, 17h46   #2
ZeldorBlat
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: herf link to php page

On Apr 29, 12:39 pm, BigZero <vijaymajagaon...@gmail.com> wrote:
> Hello ,
>
> hey i need to send some information to php file that is i have more
> then one ip address in my page that all r herf liked to show.php that
> when u click on the any of the ip the show.php will display
> i want to send any ip that the link is selected with click the link to
> show.php
> how do this thing,
> well i have an table with the radio button and it's working fine but i
> m try that with single link that is herf link. some body ...
>
> Thanks
> VM


If I'm understanding you correctly you have something like this:

<a href="http://192.168.1.42/show.php">Foo</a>
<a href="http://192.168.1.43/show.php">Bar</a>
<a href="http://192.168.1.44/show.php">Baz</a>

And, when someone clicks on these links, you want show.php to be able
to determine which IP address was used.

There's probably a better way to solve your problem, but, given what
you have, you should be able to get it inside show.php using
$_SERVER['HTTP_HOST'].
  Réponse avec citation
Vieux 30/04/2008, 05h49   #3
BigZero
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: herf link to php page

Hey thanks for reply here my code that i told u i m using a table and
radio button that's working for me


<HTML>
<HEAD>
<TITLE> Search Key </TITLE>
</HEAD>
<BODY>
<?
$key = $_POST["searchkey"];
//echo $key;
foreach ($_POST as $field => $value)
{
echo "$field = $value<br>";
break;
}
$con = odbc_connect('MSAccessDriver','','');
$sql = "select Sys_IP_Add from System_Master";
$cur= odbc_exec($con,$sql);
?>
<form method="post" action="show.php">
<table>
<?
while(odbc_fetch_row($cur))
{
//$name= odbc_result( $cur, 2 );
//$ip = odbc_result( $cur, 1 );
$ip = odbc_result( $cur,1);
echo "<br>";
?>
<tr><td>

<input type="radio" group="ipadd" name = "addr" value=<?$ip?><? echo
$ip; ?></input>
<td>
<? echo $ip; ?>
</tr>
<?
}
?>
</table>
<br>
<input type ="submit" value="Show" name="Show">
</BODY>
</HTML>
it working fine but all i need is just one click and show.php that get
ip which selected and show the detail that is DB with this ip


Thanks
VM
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 13h00.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,10579 seconds with 11 queries