Jump to content

Passing of Parameters


Gayatri19Sawant

Recommended Posts

<?php  
while($row=mysql_fetch_array($data1))
{
 echo "<li><input type='checkbox' name='listitem[]'  value='".$row['cat']."'>".$row['cat'];
 
}
echo $row[1];
?>
<br/>
<input type="submit" value="send" />
 
<?php
    foreach($_POST['listitem'] as $value)
    {
?>
<a href="cloud.php?q=<?php echo $value; ?>"></a>
<?php
//echo "<a href=cloud.php?p=+'".$value."' target='_blank'></a>";
   echo 'Checked: '.$value.'';
    }
?>
 

i need to send $value parameter to another page.. the above is my code snippet.

 

thank you in advance

Link to comment
Share on other sites

You may need to be more specific about what you are trying to do, but one thing that seems off to me is that you don't have anything inside your anchor tag, so unless you have some css marking up all links on your page, you aren't outputting anything to actually click on. So perhaps your issue is that you need to put something in your link tag so you have something to click on, ex:

<a href="cloud.php?q=<?php echo $value; ?>">click me!</a>
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.