View Full Version : Capturing snipets from other pages

11-24-2007, 12:04 AM

I was wondering if it is possible to grap info from another page dynamically to save time copying pasting etc...


News page on the site has a paragraph i want to dynamically grab this and place it on my front page?

Any ideas?


11-24-2007, 02:37 PM
Look in the manual for 'Snippets'. There is a built in function in DW for this I think.

11-26-2007, 10:36 AM
Snippets are more for storage of code (html, php, javascript, etc) that you may want to use over again on a different site. Example might me a php form mail script.

Sounds like what you want to do is use information from one page on your site to be repeated on another page. One method is to use SSI (server side includes). Might want to do a search in the DW Club or a Google to learn more on this.

11-26-2007, 01:21 PM
or do you want to create a library of code for use time and time again

12-05-2007, 06:18 PM
Hi guys

I was thinking i have a form i have created in php and i was wondering if i can mirror the form say on my index.html page.

I can create the same form in flash and get a php validation on the form and insert this into my index.html page.

Does this sound a bit daft?

12-05-2007, 07:32 PM
are you wanting 1 form which you can use on different pages

12-05-2007, 08:09 PM
yes exactly....

12-06-2007, 06:37 AM
your using PHP so just include it

create your form and fields and include('form.php')


i have some new tuts about to go live. I would sugest you look at the OOP vid. It will save you loads of coding