This is a discussion on "Insert code dynamically" within the Web Page Design section. This forum, and the thread "Insert code dynamically are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Insert code dynamically
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Hi,
im looking at learning how to insert code into a webpage via my browser i.e. i want to make a maintainence page where I enter the address of an image, title and enlarge image link, then press enter and it creates and saves the relevant code into the page I was modifying i.e. "photo.html". I know that this will take some time and its probably easier just to write the code into the page instead but I want to learn how to do it. The problem is, I have no idea where to start, could anyone recommend any good sites/books/keywords that might help me, thanks |
|
|
|
|||
|
Re: Insert code dynamically
You want to create webpages via your browser?
|
|
|||
|
Re: Insert code dynamically
Quote:
i know what you mean. And what you want to can be accheived using a server side language and a database. give me some more information and we can give u the next step :wink: |
|
|||
|
Re: Insert code dynamically
Ah i think i understand now, you want to create an admin panel which you can use to control the site i.e. adding news, images etc.
As stated this is done with a server side language such as PHP or ASP. |
|
|||
|
Re: Insert code dynamically
hehe tut. sypher, allways one step behind:wink:
Last edited by benbramz; Nov 20th, 2005 at 18:40. |
|
|||
|
Re: Insert code dynamically
Hi,
no i don't want it to make the pages, what im looking to do is make a page which I can use to then make standard modifications of other pages i.e. if I wanted to add a new image at the bottom of a page with other images on, I want to make it so I can put the path to the image, a caption and a enlarge image link then when I click save, i want it to insert the generated code into the file and save it so viewers to my page get the image (this is just an example) So basically I want to learn a way to generate and insert code into a file. I don't know if I've explained this any better than my first attempt |
|
|||
|
Re: Insert code dynamically
yes thats exactly what i want to do
|
|
|||
|
Re: Insert code dynamically
you can use a cms (content managment system) there are many free ones arorund, for example php nuke
|
|
|||
|
Re: Insert code dynamically
oh right,
but i was looking to learn how to make it myself so would you advise i use ASP |
|
|||
|
Re: Insert code dynamically
the thing that is nice about asp is that you can use access databases, which is nice for starting out - as you can edit the database tables more effectivly if your not too confident with using SQL.
|
|
|||
|
Re: Insert code dynamically
Right ok, thanks for the help, il look into developing my very limited knowledge of ASP
|
|
|||
|
Re: Insert code dynamically
Are there any good sites/books you could recommend me
|
|
|||
|
Re: Insert code dynamically
well i know of a good site to learn from:
www.webforumz.com lmao: I dont mind helping out, what exactly would u need? |
|
|||
|
Re: Insert code dynamically
lol ok, well il have a look at what i need to do and get back to you, thanks
|
|
|||
|
Re: Insert code dynamically
Theres also alot of tutorials around and articles at the top of web forumz.
|
|
|||
|
Re: Insert code dynamically
Quote:
|
|
|||
|
Re: Insert code dynamically
So have I got this right,
I need to write server side scripts to include the database on the page and then enter the parts I want to modify i.e. pictures in the database. I wasn't wanting to grant access to anyone else, I was just going to use it myself as a control panel and keep it password protected. |
|
|||
|
Re: Insert code dynamically
that exactly what you need.:wink:
|
|
|||
|
Re: Insert code dynamically
Im completely confused with this now, i decided to use php and mysql.
I thought I needed to insert php code to allow it to access the database into the paga i want viewers to look at (don't want them to be able to change the page at all) so I assumed this would be easy, just insert the code for accessing the database into the page (im not at this stage looking at inserting any code to allow the database to be modified) I thought if I wanted to make a page for viewing images, I would need fields image_title, image_description, image_location and image_link (to enlarge it) so i went away and made a database with those fields and 1 record (just as a test) well i just got to the stage where i was thinking of writing the code to allow the database to be accessed and thought how do I make it so the page displays all the records without adding code for each record, im sure you've probably already explained this to me but im a little thick |
![]() |
| Tags |
| insert, code, dynamically |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| dynamically create php script | nate2099 | PHP Forum | 1 | Nov 13th, 2007 16:08 |
| PHP Code insert into database problem | longstand | PHP Forum | 7 | Oct 13th, 2007 22:03 |
| Forcing a 3 row layout dynamically | rosh1e | Web Page Design | 6 | Apr 7th, 2007 13:24 |
| Changing URLs dynamically - is this possible? | fallen_angel | Web Page Design | 8 | May 16th, 2006 23:31 |
| Drawing lines dynamically | gwx03 | Flash & Multimedia Forum | 5 | Nov 28th, 2003 17:27 |