Re: [PHP] $PHP_SELF in a template problem, I think ??

2001-08-06 Thread Phil Latio

Tried this and got parsing errors so " must be correct.


"Richard Baskett" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Does the manual actually say to use the tags ""?  Or is it the
> normal tags of ""?
>
> > I run a small search engine and adding URL's is a bit of a pain so I
thought
> > I would try to make it easier. Looking around I found a PHP function
called
> > "get_meta_tags" which unsurprisingly, grabs the contents of varoius meta
> > tags. I just want the "description" contents so I first made a
standalone
> > PHP page (http://www.yorkshire-search.co.uk/links/meta-tags.php3) which
> > performs get_meta_tags and uses $PHP_SELF so output is displayed on a
page
> > with the same name. Check it out and you see that works fine (was a
slight
> > problem if no initial URL value set).
> >
> > However, the search engine uses HTML templates and that is where my
problem
> > is.
> >
> > Within the orginal form (add_form.html) was just HTML so I deleted that
and
> > put the above working code between  tags to generate a form.
> > WhenI uploaded it and then entered the page, the form displayed OK but
when
> > I
> > press "generate meta tags" it refuses to output the results into the
boxes.
> > The search engine manual says you can place PHP code within templates as
> > long as they are within  tags so I am now at a bit of loss.
> >
> > This is the add_form.html template if anyone is interested.
> >
> > Add Link
> > 
> > 
> > 
> > 
> > <%error_msg%>
> > 
> >
> > 
> >
> > if ($action == "generate")
> > {
> > print "Insert the following HTML code between the  tags
of
> > your site:";
> > print " > CONTENT=\"$desc\">\n";
> > print "\n";
> > if ($robots == "yes")
> > {
> > print "\n";
> > }
> > if ($refresh == "yes")
> > {
> > print "\n";
> > }
> > if ($copyright == "yes")
> > {
> > print "\n";
> > }
> > if ($author == "yes")
> > {
> > print "\n";
> > }
> > if ($generator == "yes")
> > {
> > print "\n";
> > }
> > if ($language == "yes")
> > {
> > print "\n";
> > }
> > if ($revisit == "yes")
> > {
> > print "\n";
> > }
> > print "";
> > print "Create another set of meta tags";
> >
> >
> > }
> > else
> > {
> > if (isset($getmetafrompage))
> > {
> > $MetaTags = get_meta_tags($getmetafrompage);
> > }
> > $description = $MetaTags["description"];
> > $keywords = $MetaTags["keywords"];
> > $robot = $MetaTags["robot"];
> > $author = $MetaTags["author"];
> > $refresh = $MetaTags["refresh"];
> > $copyright = $MetaTags["copyright"];
> > $revisit = $MetaTags["revisit-after"];
> > $generator = $MetaTags["generator"];
> > $language = $MetaTags["language"];
> >
> > $year = date('y');
> > print "";
> > print "If your page already has META tags you may import and edit
> > them.";
> > print "URL:  > VALUE=\"http://\";>";
> > print " > class=\"button\">";
> >
> > print "";
> > print "";
> > print " > width=\"100%\">  > size=\"2\">Title";
> > print " > face=\"Arial\" size=\"2\">Url";
> > print " > echo=\"$getmetafrompage\"> > face=\"Arial\" size=\"2\">Description";
> > print " > wrap=virtual VALUE=\"$description\">";
> > print " > size=\"2\">Category > size=\"2\"><%category%> > size=\"2\">Contact Name";
> > print " > face=\"Arial\" size=\"2\">Email > size=30> > size=\"2\">Bid";
> > print " > color=\"green\">(optional)  > type=submit name=submit value=\"Add\"
> > class=\"button\">";
> > }
> >
> > 
> >
> > 
> > 
> > 
> >
> >
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] $PHP_SELF in a template problem, I think ??

2001-08-06 Thread Phil Latio

What I've said.

I might just check out trying out  as they aren't the brightest
bunch of individuals.


- Original Message -
From: "Richard Baskett" <[EMAIL PROTECTED]>
To: "Phil Latio" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, August 06, 2001 1:22 PM
Subject: Re: [PHP] $PHP_SELF in a template problem, I think ??


> Does the manual actually say to use the tags ""?  Or is it the
> normal tags of ""?
>
..


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] $PHP_SELF in a template problem, I think ??

2001-08-06 Thread Richard Baskett

Does the manual actually say to use the tags ""?  Or is it the
normal tags of ""?

> I run a small search engine and adding URL's is a bit of a pain so I thought
> I would try to make it easier. Looking around I found a PHP function called
> "get_meta_tags" which unsurprisingly, grabs the contents of varoius meta
> tags. I just want the "description" contents so I first made a standalone
> PHP page (http://www.yorkshire-search.co.uk/links/meta-tags.php3) which
> performs get_meta_tags and uses $PHP_SELF so output is displayed on a page
> with the same name. Check it out and you see that works fine (was a slight
> problem if no initial URL value set).
> 
> However, the search engine uses HTML templates and that is where my problem
> is.
> 
> Within the orginal form (add_form.html) was just HTML so I deleted that and
> put the above working code between  tags to generate a form.
> WhenI uploaded it and then entered the page, the form displayed OK but when
> I
> press "generate meta tags" it refuses to output the results into the boxes.
> The search engine manual says you can place PHP code within templates as
> long as they are within  tags so I am now at a bit of loss.
> 
> This is the add_form.html template if anyone is interested.
> 
> Add Link
> 
> 
> 
> 
> <%error_msg%>
> 
> 
> 
> 
> if ($action == "generate")
> {
> print "Insert the following HTML code between the  tags of
> your site:";
> print " CONTENT=\"$desc\">\n";
> print "\n";
> if ($robots == "yes")
> {
> print "\n";
> }
> if ($refresh == "yes")
> {
> print "\n";
> }
> if ($copyright == "yes")
> {
> print "\n";
> }
> if ($author == "yes")
> {
> print "\n";
> }
> if ($generator == "yes")
> {
> print "\n";
> }
> if ($language == "yes")
> {
> print "\n";
> }
> if ($revisit == "yes")
> {
> print "\n";
> }
> print "";
> print "Create another set of meta tags";
> 
> 
> }
> else
> {
> if (isset($getmetafrompage))
> {
> $MetaTags = get_meta_tags($getmetafrompage);
> }
> $description = $MetaTags["description"];
> $keywords = $MetaTags["keywords"];
> $robot = $MetaTags["robot"];
> $author = $MetaTags["author"];
> $refresh = $MetaTags["refresh"];
> $copyright = $MetaTags["copyright"];
> $revisit = $MetaTags["revisit-after"];
> $generator = $MetaTags["generator"];
> $language = $MetaTags["language"];
> 
> $year = date('y');
> print "";
> print "If your page already has META tags you may import and edit
> them.";
> print "URL:  VALUE=\"http://\";>";
> print " class=\"button\">";
> 
> print "";
> print "";
> print " width=\"100%\">  size=\"2\">Title";
> print " face=\"Arial\" size=\"2\">Url";
> print " echo=\"$getmetafrompage\"> face=\"Arial\" size=\"2\">Description";
> print " wrap=virtual VALUE=\"$description\">";
> print " size=\"2\">Category size=\"2\"><%category%> size=\"2\">Contact Name";
> print " face=\"Arial\" size=\"2\">Email size=30> size=\"2\">Bid";
> print " color=\"green\">(optional)  type=submit name=submit value=\"Add\"
> class=\"button\">";
> }
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] $PHP_SELF in a template problem, I think ??

2001-08-06 Thread Phil Latio

I run a small search engine and adding URL's is a bit of a pain so I thought
I would try to make it easier. Looking around I found a PHP function called
"get_meta_tags" which unsurprisingly, grabs the contents of varoius meta
tags. I just want the "description" contents so I first made a standalone
PHP page (http://www.yorkshire-search.co.uk/links/meta-tags.php3) which
performs get_meta_tags and uses $PHP_SELF so output is displayed on a page
with the same name. Check it out and you see that works fine (was a slight
problem if no initial URL value set).

However, the search engine uses HTML templates and that is where my problem
is.

Within the orginal form (add_form.html) was just HTML so I deleted that and
put the above working code between  tags to generate a form.
WhenI uploaded it and then entered the page, the form displayed OK but when
I
press "generate meta tags" it refuses to output the results into the boxes.
The search engine manual says you can place PHP code within templates as
long as they are within  tags so I am now at a bit of loss.

This is the add_form.html template if anyone is interested.

Add Link




<%error_msg%>




if ($action == "generate")
{
print "Insert the following HTML code between the  tags of
your site:";
print "\n";
print "\n";
if ($robots == "yes")
{
print "\n";
}
if ($refresh == "yes")
{
print "\n";
}
if ($copyright == "yes")
{
print "\n";
}
if ($author == "yes")
{
print "\n";
}
if ($generator == "yes")
{
print "\n";
}
if ($language == "yes")
{
print "\n";
}
if ($revisit == "yes")
{
print "\n";
}
print "";
print "Create another set of meta tags";


}
else
{
if (isset($getmetafrompage))
{
$MetaTags = get_meta_tags($getmetafrompage);
}
$description = $MetaTags["description"];
$keywords = $MetaTags["keywords"];
$robot = $MetaTags["robot"];
$author = $MetaTags["author"];
$refresh = $MetaTags["refresh"];
$copyright = $MetaTags["copyright"];
$revisit = $MetaTags["revisit-after"];
$generator = $MetaTags["generator"];
$language = $MetaTags["language"];

$year = date('y');
print "";
print "If your page already has META tags you may import and edit
them.";
print "URL: http://\";>";
print "";

print "";
print "";
print " Title";
print "Url";
print "Description";
print "";
print "Category<%category%>Contact Name";
print "EmailBid";
print "(optional) ";
}











-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]