I am using this function:
function MM_openBrWindow(theURL,winName,features) {
window.open(theURL,winName,features);
return false;
}
Which is called here:
<strong><a href=”
Google.com is displayed along with a small popup containing a form. This form is used to add links to a database but the url has to be typed in manually.
The code for the form is:
<?php
}
function display_add_bm_form2()
{
// display the form for people to ener a new bookmark in
echo
“<form name=’bm_table’ action=’add_bms.php’ method=’post’>
<table width=250 cellpadding=2 cellspacing=0 bgcolor=’#cccccc’>
<tr><td>New BM:</td><td><input type=’text’ name=’new_url’ value=”
size=30 maxlength=255></td></tr>
<tr><td colspan=2 align=’center’><input type=’submit’ value=’Add bookmark’></td></tr>
</table>
</form>/”
?>
I want the value of the form to = whatever the url of the href is (in the example google.com when they click on the link, so the text field automatically updates with the url so it does not have to be typed in manually.
I figure I need to use: popup.php?url=”google.com”
and then for the form value: value='($_GET[“url”]);’ or something…
But I need the value of url to = whatever the link is in the href as I mentioned. Is there any way I can do that?