| Description | Wouldn't it be great if you could simply click a bookmark in your browser to automatically populate the info on your add site page? Well now you can. With a slight change to your include/add.php file, you can create a bookarklet in Firefox and IE that fills in much of the info from the site's meta tags. You don't really need to download this file, you can create your own bookmarklet here. but you'll still need to edit add.php slightly ... in Dew-NewPHPLinks "/include/add.php" lines ~12-24 starting with "$SiteName=mysql_escape_string($_POST['SiteName']);"... ending with ..."$submit_add=$_POST['submit_add'];" replace with: " $SiteName=mysql_escape_string($_REQUEST['SiteName']); $SiteURL=mysql_escape_string($_REQUEST['SiteURL']); $RecipURL=mysql_escape_string($_REQUEST['RecipURL']); $Description=mysql_escape_string($_REQUEST['Description']); $Category=mysql_escape_string($_REQUEST['Category']); $Country=mysql_escape_string($_REQUEST['Country']); $UserName=mysql_escape_string($_REQUEST['UserName']); $PW=mysql_escape_string($_REQUEST['PW']); $PID=mysql_escape_string($_REQUEST['PID']); $PW2=mysql_escape_string($_REQUEST['PW2']); $Hint=mysql_escape_string($_REQUEST['Hint']); $Email=mysql_escape_string($_REQUEST['Email']); $submit_add=$_REQUEST['submit_add']; Thats it, afterwards clicking the bookmarklet will autopopulate may of the add site fields for you. A note to java / javascript / bookmarklet literate coders, please help to continue the evolution of this contribution. |