Hi,
after hours and hours...I can't find a solution for the following problem:
In the admin area - I try - before I add a link, I added a new page called link_add_pre_check.php
The link_add_pre_check_form.html look like:PHP Code:
<?php
include("../application.php");
session_start();
if(isset($COOKIE_USERNAME))
$_SESSION['indexu_session_username'] = $COOKIE_USERNAME;
$_SESSION['indexu_session_location'] = "Administrator Area";
$_SESSION['indexu_session_ip'] = $_SERVER["REMOTE_ADDR"];
function pre_check_link(){
global $admin_template_path;
DisplayTemplate($admin_template_path."link_add_pre_check_form.html","\$novar");
}
DisplayTemplate($admin_template_path."header.html","\$novar");
pre_check_link();
DisplayTemplate($admin_template_path."footer.html","\$novar");
?>
In the link_add.php I just added a few lines to the function ShowFormAddLink ()PHP Code:<form action="link_add.php" method="post">
<table cellpadding='4' cellspacing='0' border='0' width='50%'>
<tr>
<td class=tbl_caption colspan=2>
Add New Link Step 1
</td>
</tr>
<tr class=tbl_light2>
<td>Url</td>
<td width=280><input type=text size=40 name=url value='http://'></td>
</tr>
<tr>
<td class=tbl_dark colspan=2 align=center>
<input type=submit value="Get Meta Data for this Link" class=button>
<input type=reset value="Reset" class=button>
</td>
</tr>
</table>
</form>
In the link_add_form.html I modified:PHP Code:$meta = get_meta_tags($_POST["url"]);
$url = $_POST["url"];
$description = $meta["description"];
$keywords = $meta["keywords"];
DisplayTemplate($admin_template_path."link_add_form.html", "\$category,\$custom_field_form,\$add_cat1,\$add_cat2,\$url,\$description,\$keywords");
PHP Code:<tr class=tbl_light2>
<td>Url</td>
<td width=280><input type="text" name="url" value="<%url%>" size="50"></td>
</tr>
...
<td width=280>
<textarea name=description cols=40 rows=7><%description%></textarea>
</td>
...
<td width=280>
<textarea cols="40" rows="7" name="keywords"><%keywords%></textarea>
</td>
And I really can't understand why JUST <%url%> is displayed but not the description and the keywords.
Hope someone can understand what I'm trying to to... and can explain how i get the last to vars parsed from the temaplte engine. What I'm doing wrong here???



