I want to pass the parameter value in url.I have the parameter 'redir'.redir value is changed dynamically as 1,2,3,4,5,... or any number I passed the redir value from php.I passed the value to the newpage() function. I want to pass dynamic redir value as in rec_resume_post.php?req_id=1 or rec_resume_post.php?req_id=2.
<?php
echo '<tr><td>'.$title.'</td><td>'.$c_name.'</td><td>'.$e_first_name.'</td><td>'.$num.'</td><td><input type="submit" value="submit" onClick="newpage('.$req_id.');" /></td></tr>';
?>
<script>
function newpage(redir){
window.alert(redir);
window.open("rec_resume_post.php?req_id=redir");
}
window.open("rec_resume_post.php?req_id=" + redir);