Inserting flat file d/base results into HTML

They have: 6 posts

Joined: Mar 2002

Can anyone please help me? I have a PERL script (CGI) that I want to print the output into HTML.

The following link prints the results of the database

Headlines

No problems printing this into a framed page but I want to add it to a non framed page ........... any ideas?

They have: 601 posts

Joined: Nov 2001

Hm, sorry, don't quite get you. Can you provide us with URL to a page where this current is at?

What do you mean that you can enter it into a frame page but not a singular HTML page? Surely the output is HTML if it gets outputted to a framed page? You just want to adjust the targets? Or do you want to render the HTML output?

- wil

They have: 6 posts

Joined: Mar 2002

Sorry if I did not explain myself ...... I am not a programmer, just love designing website, so not sure of terms etc....

I am designing a website at
http://www.thingsonline.com.au/index.shtml

I want headline news events on the main page(index.shtml) . I have the script that will generate the headlines (a flate file database, makes it easy for those who know less than me to update Smiling example found at http://www.thingsonline.com.au/index.shtml Headlines link ), but I want it to be displayed on the main page (index.shtml, between the banners and the menu).

If I had framed site with a menu and a target page, the following link could be in the menu side

Headlines

And would print the output to the target page.

But i want to add the output to the following site http://www.thingsonline.com.au/index.shtml between the banners and the menu - Display Headlines here -

I hope this is a bit clearer than mud Smiling

Many thanks

Trevor

They have: 601 posts

Joined: Nov 2001

OK. On your main page, where you say "- Display Headlines here -", try inserting this code instead:

<!--#include virtual="/cgi-bin/headlines/news_vis.pl?field=all&choosedisp=2&ascdes=yes&search_sort=sort&srchtype=within&job=search&startline=0&searched_b4=0" -->
'

And try reloading the page to see if it works. Basicaly, what it should do is call the script with all the parameters that were a part of your hidden fields before. If SSI is set up correctly on your server then hopefuly this should work!

But then again, maybe the script you're using is setup only to recieve POST requests and not GET. Hm. If this is the case then I'll take a look and see if I can tweak it for you. But try the above method first!

Hope this helps.

- wil

They have: 6 posts

Joined: Mar 2002

No go ......... I also tried GET before and found it only loaded a blank page.

They have: 601 posts

Joined: Nov 2001

Ah, drat. Can you email me the script? Mail it to:

wil @ stephens . org

I can try and take a look for you.

They have: 601 posts

Joined: Nov 2001

[ posted & mailed ]

OK. The modified file has been fixed and uploaded to:

http://cgi.fbagroup.co.uk/headlines/

Cheers!

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.