0

hi all,

i wanted passe multiple variable to php file from get methode

here is the code

<div onmouseover="show(document.getElementById('link<?php echo $cmId.$poId?>'));"     onmouseout="hide(document.getElementById('link<?php echo $cmId.$poId?>'));">

 <form> <?php echo $row['comment_cm']?><br><a href="editComment.php?        
 var1=$cmId&var2=$poId" id="link<?php echo $cmId.$poId?>">Edit</a>                
</form>
       </div>
4
Contributors
3
Replies
4
Views
6 Years
Discussion Span
Last Post by HITMANOF44th
0

So what's the problem? Is your issue js or php? I don't understand why you have this code inside a form. You don't need a form here??

0

What is your issue?
Want to send multiple parameters via hyperlink?
For that Change your hyper link as

<a href="editComment.php?var1=<?php echo $cmId?>?var2=<?php echo $poId ?>" id="link<?php echo $cmId.$poId?>">Edit</a>

Edited by divyakrishnan: n/a

3

use the & for multiple gets not the ? to seperate them

<a href="editComment.php?var1=<?php echo $cmId?>&var2=<?php echo $poId ?>" id="link<?php echo $cmId.$poId?>">Edit</a>

so on the next page you use
$_GET
$_GET

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.