pegasos Posted December 29, 2010 Share Posted December 29, 2010 how can i pass more then one value via href with this kind of method echo "<a href=\"submit_docs.php?prop_id=".$prop_id."\">Click </a>"; tnx Link to comment https://forums.phpfreaks.com/topic/222931-passing-a-value-via-href/ Share on other sites More sharing options...
the182guy Posted December 29, 2010 Share Posted December 29, 2010 Just use the & sign echo "<a href=\"submit_docs.php?prop_id=".$prop_id."&test=" . $test . "\">Click </a>"; Link to comment https://forums.phpfreaks.com/topic/222931-passing-a-value-via-href/#findComment-1152681 Share on other sites More sharing options...
pegasos Posted December 29, 2010 Author Share Posted December 29, 2010 tnx for the replay but can u help me with this kind of value ?? echo "<a href=\"javascript: window.open('barmizva.php', 'window_name', 'width = 50, height = 50');&havecritiq=".$exist."\">link</a>"; its a javascript popup and a havecritiq value send but its not working can you direct me ?? Link to comment https://forums.phpfreaks.com/topic/222931-passing-a-value-via-href/#findComment-1152686 Share on other sites More sharing options...
the182guy Posted December 29, 2010 Share Posted December 29, 2010 Are you trying to do.... echo "<a href="#" onclick=\"javascript: window.open('barmizva.php?havecritiq=" . $exist . "', 'window_name', 'width = 50, height = 50'); return false;"\">link</a>"; Link to comment https://forums.phpfreaks.com/topic/222931-passing-a-value-via-href/#findComment-1152690 Share on other sites More sharing options...
pegasos Posted December 29, 2010 Author Share Posted December 29, 2010 yes but what that you wrot is gives an error Link to comment https://forums.phpfreaks.com/topic/222931-passing-a-value-via-href/#findComment-1152694 Share on other sites More sharing options...
the182guy Posted December 29, 2010 Share Posted December 29, 2010 echo "<a href=\"#\" onclick=\"javascript: window.open('barmizva.php?havecritiq=" . $exist . "', 'window_name', 'width = 50, height = 50'); return false;">link</a>"; You shouldn't really stick it all on the <a> tag like that, very difficult to read and debug. Link to comment https://forums.phpfreaks.com/topic/222931-passing-a-value-via-href/#findComment-1152720 Share on other sites More sharing options...
pegasos Posted December 30, 2010 Author Share Posted December 30, 2010 tnx man you are the best Link to comment https://forums.phpfreaks.com/topic/222931-passing-a-value-via-href/#findComment-1152892 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.