Unique Titles To Html Pages That Are Dynamically Created
how to assign unique titles to html pages that are dynamically created through php? The problem IAM having is that although the pages on my site have html extensions when loaded in the browser they are not present on my server, this must mean that they are generated dynamically right? For this reason I am unable to assign unique titles to each page.
View Complete Forum Thread with Replies
Sponsored Links:
Related Messages:
Dynamically Add New Html Pages
i want to build a new site for a friend but have noticed that in some free software i have installed you can dynamically add new html pages via an admin section. How is this done, i would like to beable to view the current pages via the adim side and edit and delete them as well as create them?
View Replies !
View Related
Titles In Php Pages
First let me say that I am a rank amateur and am learning as I go. That said, I am using a php scripted page to call several different html pages as content. This makes it very easy to edit the look, header, etc...of the 200+ pages on my site but keeps them from having good individual titles that the search engines like. If I use a "create title" tag I do get individual titles but they show the entire url (http:......com/php?x=....) and I would like plain text in the header. Are there tags I can use on text in the html pages (product names) to extract them to the title? If so what would I put in the php page to call the title from those tags.
View Replies !
View Related
Creating Titles For PHP Pages
Currently, in order to create title tags for our PHP pages, we're using <title><?=$title?></title> on the main or index page and then using: <a href=http://www.example.com/main.php?pid=overview&title=health care medical advertising and marketing> in each link. Is there a better way to do this rather than have the titles programmed into each link?
View Replies !
View Related
Best Way To Add Titles To Dynamic Pages
Most of the pages on my site follow the simple pattern: <? require('scriptfiles/header.inc'); ?> HTML PAGE <? require('scriptfiles/footer.inc'); ?> This of course means that every page has the same title. Well, now I want to change the titles for all the pages on my site individually, to reflect what they contain. Code:
View Replies !
View Related
Dynamic Webpage Titles For Multiple Pages
I have hundreds of "search result" pages on my site that I have mod-rewrited into Google-friendly urls. Nice. However, each page is titled in a very generic way: eg. Cookies Page 1, Cookies Page 2, Cookies Page 3, etc. As I can't really grab keywords from the page content (they are just random results), I want to be able to pull a selection of keywords from a seperate file and print them as a permanent Title on each page: Code:
View Replies !
View Related
Way To Have Variables Be Created Dynamically.
I know there's a way to have variables be created dynamically. What I'm trying to do is to pass information about products to PayPal, but I don't know how many products are going to be in each cart. It could be 1 or 100. I need to create a variable who's ending number changes depending on how many products are in the cart. How do you have those created dynamically? I need the information to be passed through hidden variables via an HTML form as well.
View Replies !
View Related
Dynamically Created Link
I have written a script that will echo dynamically created links, however I am having trouble getting these links to open in a new window. Here is the trouble code: echo "<hr> <a href={$row['url']}?sid={$row['id']}$sid>target="_blank" {$row['dname']} </a> I know the problem is that php sees target="_blank" and therefore thinks I am trying to create a variable named "target". So it's giving me an unexpected T_STRING error. How can I format this so that php understands what I'm trying to do? Also, I can't set all links to open in a new window, as there are other links on the page that should not generate an additional window.
View Replies !
View Related
Saving A Dynamically Created Png Image
I have a web site that responds to a user request by sending an image generated dynamically. the request page call is something like this <img id = "picid" src= "generateimage.php?$picName"> Where $picName holds the parameters needed for a particular image generateimage.php sends the request to the server which generates the image as $pngstr and responds: header("Content-Type: image/png".chr(13).chr(10)); header("Content-Length: ".strlen($pngstr).chr(13).chr(10).chr(13).chr(10)); echo $pngstr; Now, I want the user to be able to right click the image and save it with a given name - related to but not exactly $picName, as a png. I also have a set of images forming an animation generated in much the same way as the single image described above. How could I have the user save these? is there an animated png yet?
View Replies !
View Related
Centering Text In A Dynamically Created Image
These are live stats from my forum, taken from my database. As you can see, it looks ok, as long as the values are pretty uniform, but when I get a board style that is only three characters long like this one: Then It starts to look weird, does anyone know how I can center the text and the avatar within a certain area? The max size for a username is 18 characters, the max length for theme is 11 characters, the shortest is 3, the post count, join date, and last visit date still need to be centered, but length doesn't really matter with those. Also, the max size for the avatars are 100x100, the minimum is anything less than that. I know I could get the width of the picture and do some math to figure out where to put it, right now, at full size, the x and y coordinates of the picture are: (45, 48), so that would be the maximum, but I can't figure out how I would calculate the location for things smaller than that.
View Replies !
View Related
Dynamically Created Pdf, Need To Save To Server (phppdflib)
I've been using the phppdflib class to generate PDFs on the fly. They appear in the browser using Acrobat reader or download (depending how the user's browser is set up). However, I would like the option to save these PDFs on the server for later reference. I know it's something to do with fopen(), fput()/fwrite() etc., but I've so far been unsuccesful. Here's the final bit of code that generates the pdf: ..........
View Replies !
View Related
Dynamically Populate Drop-down List And Dynamically Include Html File
We have a drop down list on a PHP page, with several product names, and when people click one item, we will refresh the same page with the product name as parameter, and in turn we want to include a HTML file into the content area of the same page. I know it is recommended to put everything into database, but we want the web site to be very "portable", so the drop-downlist and the content should both in text files. Let's say the drop-down list will be poplulated from the product.txt file, and there will be a file for each corresponding item in the drop-down list. From the user point of view, if he wants to add a new product, he will just need to open the product.txt file, and add a new line with the product name, "Laptop", then add a new text file named "laptop" in the same folder which contains the HTML fragment to be included in the content area. What is the easiest way to do this?
View Replies !
View Related
Making Dynamically Created Checkboxes Check On Value Change?
I have no idea if this is more a PHP question or Javascript question, because my problem hinges equally on both. I have a PHP script that queries a database and creates a list of rows for each item, each with their own checkbox one can select to do stuff later. The PHP script this form posts to creates an array of all the selected checkboxes and does stuff. But, on the form, I want to be able to have the checkboxes auto-check when someone changes the value of a textfield on that row. With some stuff cut out, here's what I have on the form: <!-- Begin function NotEmpty() { if (document.f.trackno$oim.value!="") { document.f.remship.checked = true ; } } // End --> <form name="f" id="f" method="post" action="trackpareportproc.bkk"> <input name="remship[]" type="checkbox" value="$oim" class="remship"> <input type="text" name="trackno$oim" size="40" onBlur="NotEmpty();"> Obviously I think the problem rests in how do I get the JavaScript to know which checkbox to check. I can't make the NAME for each checkbox unique otherwise that would mess up the array that's created later based on which checkboxes are selected.
View Replies !
View Related
Dynamically Created Form Rows Not Passing All Data Properly
I use 3 scripts(form, function and process). Developemnt on win2003 server. Final server will be linux Apache,Mysql and PHP is being used. The form displays multiple dynamic rows with chechboxs, input box for units of service, description of the service and each row has its own dropdown list of unit fees that apply. Note The above informaton is coming from a mysql database. When the service is submitted the selected information is displayed to the secreen by the process. Code:
View Replies !
View Related
Create A Table With A Textfield Where The User Can Enter An Amount For A Certain Dynamically Created Article
I want to go create a table with a textfield where the user can enter an amount for a certain dynamically created article coming from the database. Later, I want to calculate the whole price and so on. It works nicely to create my multi dimensional array, however, it does not work to save the values coming from the form to calculate the price. What's wrong??? <form name="shop" method="post" action="index.php"> $articleTable = array(); while ($row = mysql_fetch_array($result)) { $articleNr= $row["articleNr"]; $name= $row["name"]; $picName= $row["picName"]; $price = $row["price"]; $amount=""; $articleRow = array( "articleNr" => $articleNr, "name" => $name, "picName" => $bildName, "price " => $price , "amount" => $amount ); array_push($articleTable , $articleRow ); } foreach($articleTable as $article) { ?> <input type="text" name="article[amount]" size="2" maxlength="2" value="<? $article[amount] ?>"></td> } <? } ?> </form>
View Replies !
View Related
Unique User Pages
I have set up a user authentication system, but I would liek to know how to make unique pages from a template that when a user would log in they would have their own personalized tools and page.
View Replies !
View Related
PHP To Dynamically Make New Pages? DOH!
I am building a CMS system for a client to edit add and remove content from his new site, not a problem however he now wants the facility to create new pages and be able to edit the new pages, how do you create a new page dynamically using php and mysql? As in he needs to make a new page called untitled2.php for example, with the title at the top of the page, a description about untitled 2 and then save the newly created page so it appears in the menu and actually exists in the remote server files, then be able to edit this using the CMS system? ERM... Any standard commands as in create_page()? How would I make the new page have variables included so that it could echo mysql content onto the newly created page?
View Replies !
View Related
Unique Urls To Pages That May Change
i duno what kinda thing im looking for to do this but ill give an example, Say in my database i have "places" Now what i wanted to do is load up these places like: South North West etc But as these are loaded they need to be urls to that particular place, but i don't know how this would be done because the places may change like West may not be there any more and it could change to East.. so i cant hard code the url as west cos then if u wanted to go east it would still be taking you west =/ I been trying to do it for businesses so like it lists all businesses and itll take you the business you clicked on ... how would the page know the url name of that business :S?
View Replies !
View Related
Adding Images Dynamically To Pages
As a follow up to another question I had previously, I was wondering how I can take the image that the user just uploaded and then open a page on the site, edit a specific part of the page to include the <img> tag, and then save the new page with the image added, all through PHP. (Long sentence, huh?). I was thinking of making a .inc file and just editing that, but doing it for so many pages could be tedious? Although I'm not sure if this is what the larger sites like Myspace, Facebook, and Flickr do, but whatever method is most efficient. for accomplishing this would be best.
View Replies !
View Related
Converting Html Pages Into Dynamic Pages
I built a website in html, using Dreamweaver. I need to have a database built within these pages and the person who is going to do it told me that they will have to convert all my html pages into dynamic pages (php). Is it complicated to do this or do I just have to save my pages in php instead of html in Dreamweaver ?
View Replies !
View Related
Dynamically Generated HTML
I am trying to fit dynamically generated HTML into a variable so I can mail it out to a recepient. Now - the catch is that the dynamic generated HTML contains nexted regions which mace some heavy duty use of "if" and "while" statements. Here is a code snippet example: $msgbody = "<a id="top"></a> <table width="100%" align="center"> <tr><td><span class="style3">$mailinga[analysis]</span></td></tr></table> <br />" ----> this is where the error occurs - it says unexpected T_IF <---- if I set a semicolon after the quotes above it will not include the stuff below, and I tried other combinations of symbols and googled the issue but no go - please help. ---->:( if($asnc > 0) ................
View Replies !
View Related
Static Html With One Dynamically Served Line?
I've a site with static HTML product pages. I would like to make the price on these pages dynamic so that when all of the prices change, rather than change them on each individual page, I can just change them in one place. But just the price in the list of product details that I wanted to serve dynamically. I've had a couple of posts back from my first query who say PHP is the way to go, so I thought that I'd come to the masters and check it would be able to do this?
View Replies !
View Related
Dynamically Creating Html Table Based On Array
I need to create a table based on parameters from a form on the previous page. The form sends up to 15 variables that are read out of the url into an array ($func). These variables refer to functions that a product may or may not have. This page should show which products have the functions chosen. Normally when I create such a table in DW, its always based off the DB directly with SQL, with a filter on the URL parameter. I can't work out how to do the same when there are multiple parameters in the URL, or alternatively, pulling the parameters from the array.
View Replies !
View Related
Created All The Links As An "onclick" Rather Than A Basic Html.
I had a site built over a year ago and the coder has gone awol. The problem i am trying to solve is he created all the links as an "onclick" rather than a basic html. It works for visitors, but sitemaps and search engines can't follow these as well as it limits pda users too. if (strip_tags(@$_GET["from"]) != $mov) { ?>onClick='window.location = "<? echo $_SERVER['PHP_SELF']; ?>?from=<? echo $mov; ?>&state=<? echo strip_tags($_GET["state"]); ?>&max=<? echo $max; ?>&perpg=<? echo strip_tags($_GET["perpg"]); ?>&cata=<? echo $cat; ?>";' class="next_prev_nums" style="cursor:pointer;<? } else can someone tell me how to modify this to change it to a followable link?
View Replies !
View Related
PHP In Html Pages?
I have a problem. I need to include a php script in a simple html document on a server that does´nt support php. I´ve tested following but it does´nt work.. <SCRIPT LANGUAGE="PHP" SRC="http://www.domain.com/include.php3"> Does anybody know a solution for this problem or is it impossible?
View Replies !
View Related
HTML Pages
Is there any way to run a php script from an HTML file. I'm writing a webstats thing for my website, which is fine for me cos my whole site in wrapped in a crispy php shell but what if I wanted to share it with other people and they were using html pages, could they use it without having to change all their file extentions to .php?
View Replies !
View Related
Referencing Html Pages In Php
I have a site built in php with header/footer/body .php pages generating the page view. I wish to load into the body section the php page, a html based page from a site I manage into the php one. I am seeking to ensure that, each time the html page is edited, accessing the php site loads the new html contents into the php output.
View Replies !
View Related
Creating Html Pages With Php
I am trying to think of an effecient way, to save resources. Bigger sites tend to use .html pages, and save the endless amount of query's. I know you can make PHP create .html pages, with the database stuff in it, and all that. Is this an effecient way to do things? Or would it be the same as having a user do 5 query's a page x 200 at any one time. It seems like having php create the pre made pages with all the database information in it, might be the best way, however, what if I was to change the layout, and I had 10, 000 pages. How would I change every single .html page, to fit the new layout?
View Replies !
View Related
Refreshing Pages (html/php Mix)
I am having a problem with setting up page refreshes properly in my situation... Here's what I've got, hope I put it in text as well as I have it in my head. I originally had my pages all set to refresh every time they were hit (because they're completely mysql driven with new content all the time, I didn't want to be showing old pages)... but on some pages, this format didn't work. When I have a form, for example, and they submit the info, if they do not fill it out correctly, it gives them an error, and tells them to hit back in their browser... but when they were going back, all the info they just spent 10 minutes typing was gone.. Removed the refresh (the form content didn't change, so I didn't need it there) and the page works fine (they make an error, they back up, the info is still there). That was the easy part. Now, I am building a cookie system that recognizes the user and his password when he's roaming the system so that he doesn't have to keep entering his name and pw every time he enters information on the form (much like UBB here, you enter your username and password once per session, and it sticks around till you close the browser). Now my problem : The user goes to the form once, enters name and password, and submits... the information is submitted, the cookie IS placed. They go roaming around the site, then come back to the form again, its the 'old' form, and it doesn't pull in their cookie'd information... so they have to enter it again. If I hit refresh instead, it will pull the page up with the cookie'd information in place. To sum it up, is there a way to make a browser not refresh a page if your coming from the same page, and refresh if coming from anywhere else?
View Replies !
View Related
Dynamic HTML Pages Using PHP
I have a database of business details which are output using a page called displaydetails.php by passing the id of the records: for example displaydetails.php?id=123 Rather than having the details displayed in this way, is it possilble to generate a HTML page dynamically using PHP?
View Replies !
View Related
Html Pages Incorporating PHP
I want to use PHP code in a HTML page. Can this be done or do I have to call it a .php rather than a .html ? The reason this is an issue os because I want to use data base information on the home page. I tried to do it but when I view the html page nothing comes up, I am assuming this is because the server is not aware or looking for PHP code ?
View Replies !
View Related
Treating .html Pages As PHP
I'm running PHp 4.4.4 on Apache 2. In a particular directory, I would like .html pages to be run thorugh the PHP interpreter -- i.e. have "<?php" tags evaluated. Note, that I only want this within a single directory and not the entire web server. How could I set this up?
View Replies !
View Related
Parsing .html Pages
I have some pages with .html extensions that need to be parsed as PHP because they contain some php code. I've put the following in my .htaccess file in my root web directory (because that's where the .html pages are): Code:
View Replies !
View Related
Seperate HTML Pages
I once followed a tutorial which showed me how to select a single entry from the database. I want to do the same, but not using a database. I have some video's on youtube which I have put into seperate HTML pages. Wat I want to do is have one page, and link to it like www.something.com/video.php?vid=001. And I'll have a page with all the variables set, like 001 = vid1 & description1. So when the url is loaded it loads up the video URL and the video description and puts them on the page. then when the URL is loaded with 002, 003 etc etc it loads up the different vids. Does that make sense? I'm not sure how to do it. does anyone know how it could be done?
View Replies !
View Related
Redirecting .html Pages
Right now my site is a mix of .html and .php pages... I want to update everything so that the backend is all in php, but dont' necessarily want to update all my links. I want say mysite.com/about.html to point to mysite.com/about.php IF that page "about.html" does not exist on the server. To complicate things. I already have some rules in .htacces that will redirect things like mysite.com/article/35.html to mysite.com/article.php?=35 I want to redirect old html pages so that if someone follows an old link, it transparently brings up the .php page, without messing up my existing set of rules. How do I do this?
View Replies !
View Related
Ways To Optimize Html Pages
I know there are ways to optimize html pages with all of the software out there. But does anyone know if they make one that will crunch PHP without changing the code? Everytime I edit php code in my WYSIWYG editor it leaves spaces that aren't needed in the coding.
View Replies !
View Related
Memory Limit For For HTML Pages??
I have a php program that is building a grid (HTML table) from a MySQL database. The problems started when I added a dropdown menu to the grid and when I did the form buttons would not work when there were a few values in the drop-down. If I removed the values so it was an empty drop-down menu the form buttons would work. I thought there was a problem with my drop-down which is a quite simple menu. However, what I discovered is that it has to do with the size of the table that I am building. I changed the query so that it would only pick up about 1/2 the records (134 vs 248) which is where it works (the 135th record causes the buttons to quit working. It is not a data problem because I then tested with a different set of data and it would also fail but at a different spot. I must be running into some kind of memory limit but I have no idea what it is! Can someone help?
View Replies !
View Related
Grabbing Links Off Html Pages
does anyone know of a way to grab all the links on a html page with PHP, I'm trying to develop a doorway page maker, that will search the search engines and grab the keywords from the top ten of each search engine then extract the keywords and store them in a database. Also does anyone know if I can use PHP to zip files up?
View Replies !
View Related
|