PDA

View Full Version : Pass article Title through the include url?


jmueller
12-28-2004, 06:26 PM
(Tim) As you know, our content is on a flat file -- not MySQL.

Everything is functioning fine.

The only item on our wish list is to somehow get the Title of each
reviewed article in to the Review db.

It occured to me that this approach might work:

On each article page, we have an include which executes review_insert.

In the above include, we're passing the article number, which corresponds with the Review item_name.

What if we also pass the article Title in that include?
The include would look like this:
<? include("http://www.sitename.com/review/review_insert.php?item_id=$art_num$?item_type=$art _name$"); ?>
Note the item_type=$art_name$

I did some preliminary testing and it seems the review-script doesn't like that second parameter in the include.

So, I just wanted to throw that out there. It's easy to pass the article Title to the script.

Is this approach do-able without significant modifications?

Thanks!
Jim

imported_Tim Mousel
12-29-2004, 04:12 AM
Try this:


<? include("http://www.sitename.com/review/review_insert.php?item_id=$art_num$&item_type=$art_name$"); ?>


OR


<? include("http://www.sitename.com/review/review_insert.php?item_id=$art_num\$&item_type=$art_name\$"); ?>

jmueller
12-29-2004, 04:19 AM
Tim
I'll give them a try.

But... we'll need additional code to actually post to the table, right?

jmueller
12-29-2004, 05:23 PM
Okay.

Tim

I tried both of the include url's you suggested.
The first one works fine -- no errors.

Now for the next challenge.

How do we get the article title (art_name) posted back
to the review_items | item_type record?

Again, we're passing that value in the review_insert include url...
Maybe there needs to be some new code (?) in save.php to post that value?

*I know we're approaching this backwards-- unfortunately, until we convert our content to MySQL, I don't see another way.

*This is a "like to have" ... not critical.

Ideas? Thanks.