Make It Link To Another Html Page
How to retrive feild from table and make it clickable and link to another html page.
View Complete Forum Thread with Replies
Related Forum Messages:
Regalar Expression To Extract An Html Link From A Page
I have a regalar expression to extract an html link from a page: href=(["']?)([^>1]*.html)1(?: [^>]*)?> It looks after the "href" for an optional quote and then looks for something that is not the quote or the endarrow. The problematic part is [^>1]*. It should exclude anything with the quote, but somehow that doesn't work. Maybe 1 is not allowed inside brackets? I would like some advice on how to handle this.
View Replies !
Make Html Page And Store On Harddrive From Database For Pagination Technigue
i am creating a news site. i am adding new news in database and it must be visible to user at top. and then second latest news and so on. i am displaying 15 news on each page and then put a link for next 15 news on page. my site is accessed by millions of people everyday. so for each when he want to see news he click on news link and in my php program query is run in database. so my database access became very slow because if one million people clicks on news link, the database will be accessed and query will be run one million times. Code:
View Replies !
Html Page Link Prints Path 3 Times In Header
I have a website with html pages and a php page (a form). I just put in links on the html pages to the php page. When I click them I go to the php page and as bonus the path of the html page is printed at the top three times. (The text in the php page changes depending on which page I have hit the link from.) For example: Quote: http://mysite.com/sitefolder/previouspage.htmlhttp://mysite.com/sitefolder/previouspage.htmlhttp://mysite.com/sitefolder/previouspage.htmlhttp If I highlight and then delete this text in Navigator or Explore both browsers return me to the page written out three times at the top of the page. Here is the code that is giving me this result. Code:
View Replies !
A Web Development QUICK LINK PAGE (QLP) - HTML, Perl, PHP, JavaScript, AJAX, CGI, Etc.
I've recently organized and even color-coded many of my favorite bookmarks on WEB DEVELOPMENT (and a few other favorite subjects too) into what I call QUICK LINK PAGES. These are very condensed, compact (no graphics), fast-loading pages with a 100+ links to some of my favorite web sites on a particular subject. I hope you'll give them a try... Here's the link... The easy-to-remember link above gets you to one of the Quick Link Pages (QLP). The current categories (DIVERSIONS, INVESTING, JAZZ, MACINTOSH, OPERA, PHYSICS (with ASTRONOMY and MATHEMATICS), SPORTS, WEB DEVELOPMENT, and WINDOWS) are color-coded on the top of every page. Just click your favorite category. I hope you'll find a lot to enjoy. If you find any errors, or have suggestions for additional links or categories,
View Replies !
Using Preg_match_all To Locate HTML Anchor Link BUT Only If The Link Is A .pdf File
The subject line describes what I'm trying to do, (and after thinking about it for a day or so and trying different things; searching around for similar questions on the board,) but I still haven't found a proper regular expression. I am trying to use preg_match_all to locate HTML Anchor link BUT only if the link is a .pdf file within text from a database table. It actually was working just fine until I recently made a change regarding new lines () and (<br />) in the text that is to be searched. But after making changes regarding the new lines and things, my previous regexp doesn't work correctly. Here is the regexp I am trying to use: preg_match_all('/<a href="(.*)">(.*)</a>/U', $entry->Record['e_entry'], $res_output, PREG_PATTERN_ORDER); That regexp does find each occurance of an <a href="">something here</a> link... but I need it to only find occurances of an anchor link if it is a PDF file link (ex: <a href="../something.pdf">something</a>). So I tried changing the regexp to something like this: preg_match_all('/<a href="(.*).pdf">(.*)</a>/U', $entry->Record['e_entry'], $res_output, PREG_PATTERN_ORDER); But in the preg_match_all results array ($res_output) a regular <a href="">something here</a> link is ALSO found as well as the .pdf links... I am trying to only find links that contain .pdf at the end of the file name. Sorry that this is written kind of strangely, if you need more info let me know. Does anyone know what I need to change in the regexp to ONLY find HTML anchor links that contain .pdf at the end of the HREF?
View Replies !
Make Link With A Phrase
I would like to have some help for this: There is any phrase like "Some text, here, #*$!, yyy aaaa" I need to separate the words and make links, like: <a href='Some'>Some</a> <a href='text'>text</a> <a href='here'>here</a> Someone know any topic that explain how to do that?
View Replies !
Make A Link Clickable
When people sign up, they have to fill in a form with their personal info. I have the possibility to create a "you homepage" line in the form, but the link is not clickable. When I set the variable fields details, I have the posibility to "Display the Format". I do not know exactly what that means. I'm Dutch :-)) Maybe you can put a string o.s. in here so that the link will be clickable.
View Replies !
Make A Link Using Array Content
I want array's content to become a link itself. like,,,,, echo "<a href="$result[$rows][$cols]">".$result[$rows][$cols]."</a>"; this $result[$rows][$cols] in array has contents of email address.but it doesn't work. can anybody tell me how?
View Replies !
Need To Create And Make Download Link For Csv
i have an app that i need to be able to publish a link to download a csv file. i know that i can use php to make the file, but how to i link to it through php. like if i have an html file that has a link in it like this <a href="somedata.csv">here be data</a> or would i make that a .php file that would generate a csv ? the data will come from MySQL.
View Replies !
Automatically Make Text Into A Link
how do I make php search through a $_POST[variable] for a certain set of string, lets say R1000000. Then I would want to turn that string (R1000000) into a link <a href=example.php?id="R1000000">R1000000</a>Then append that link back into the original $_POST[variable] replacing the R1000000, with the link version. I'm sure this is doable, I just have no idea where to start, regex?
View Replies !
Make Link To Typed Text
Is there some possibility in PHP to do automatic link when somebody type URL in form window? (One or more URL in one text.) example: www.xxxxxxxx.com to be a <a href="http://www.xxxxxxxx.com">www.xxxxxxxx.com</a> (as I think, maybe I can do that with chage string when query returned from database, but I must to know how he typed in database in text: only "www..." or begin with "http://www...".) Is somebody have a script how can I change strings?
View Replies !
Want To Make A Link Anchor Call A Script
In a certain PHP document at my site, I have a link to a Word version of the same document. If the user downloads it, I want to log that s/he has done this. Data logging isn't the issue. Calling a PHP script is. So what I have is something like: <a href=http://my-web-site.com/documents/mydoc.doc>Click here</a> to download a Word version of this document. Of course the <a> anchor exists only on the client side and the PHP script exists only on the server. But since clicking the anchor sends a message to the server, there ought to be a linkage that can be exploited to enable a PHP call. I just can't think of one.
View Replies !
Setup A Link In My Page That Will Change My Page
I am working on a page with a right column that I want to use for navigation. In this right column I am using the below code to set a value for the link. I am using the variable $test right now. I want to click on the link and when the value is set to a certain value, say 1, I want the script to run and load a page based on a switch case. This way I can use different links for navigation that will load different forms and areas of my application. So here is the code for the link line. Code:
View Replies !
How Do I Make Sure HTML Is Loaded
I have a loading screen that has a nice animation that displays while the PHP is working in the background (it usually takes 20sec to do all the stuff). The issue is that it wont load the HTML until the PHP is finished querying -- so it kinda loses the purpose of having that loading screen. But I want people to know the site's working and not have to hit refresh. Can I have the PHP wait until the end of the HTML before running it's stuff? And then have it modify the header or something similar (meta-refresh?) to forward the user to the results page?
View Replies !
HTML Link
The select options include each of the products which are coded by an ID number. To create a link in the outgoing mail by PHP page. I have a var coming from a Select Option $productid. It is written as <OPTION VALUE="23532"> What I need to do is have this provide a complete link and name of the product. I would like to parse the databse of the store so that if the ID number is provided, on the resulting php page that sends the mail and displays the results on the screen, I want to read from the data base to complete the link that goes on to the screen and into the mail Thus pulling $product_name $product_description $product_thumbnail and composing it into a preformatted HTML email message. <P ALIGN="CENTER"><IMG SRC="$imagelink" width="100" height="120"><BR> <A HREF="http://www.foobar.com/products.php?productid="$productid"> $product name</A> $product_description</P>
View Replies !
Url Html Link
Rather than make my own function Im just wondering if there is a predefined one or one you guys know of I want to have something that will turn a link someone has entered (www.website.com) and wrap it in html to make it a link so: <a href="http://www.website.com" target="blank">www.website.com</a>
View Replies !
Html Link To Data
The site I am building needs several html links, from images, to variouse categories. There are two foreign keys in the table so there is no need for a join. I simply wish to search those fields and gather all the relevant numbers to display on the results page. The method is a link with the correct variable. The query: <?php require_once('Connections/sports_connect.php'); ?> <?php mysql_select_db($database_sports_connect, $sports_connect); $query_qLinks = "SELECT department_id, cat_id, advert FROM entry"; $qLinks = mysql_query($query_qLinks, $sports_connect) or die(mysql_error()); $row_qLinks = mysql_fetch_assoc($qLinks); $totalRows_qLinks = mysql_num_rows($qLinks); ?> I am trying to get a "detail" link modified to send to the results page to where the data will be recieved. search_result.php?department_send=<?php echo $row_qLinks['department_id']; ?>
View Replies !
Php Page Will Not Process Link To Different Page
I have just installed RH Linux ES 3.0 (basic) kernel 2.4.21-9.EL, i686, Apache 2.0.X, and php 4.2.X. I have made no changes to the php.ini. I am trying to use the following page (code listed here) to click on link, and display 1 of three pages. The code does not seem to work, it only shows the "else" condition of the php code, which is page: "stuff.php". What do I need to do to my apache/php config to get this to work? Of course I copied this code from a php site tutorial somewhere. Page code below: <? if ($link == page2){ $page="files/page2.html"; } elseif($link == page3){ $page="files/page3.html"; } else{ $page="files/stuff.php"; } ?> <html> <head> <title> index.php </title> </head> <body bgcolor="#999999"> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr> <td colspan="3"><h1>The Template (index.html)</h1></td> </tr> <tr> <td align="center" valign="top"><a href="index.php?link=index"> Page 1 </a></td> <td align="center" valign="top"><a href="index.php?link=page2"> Page 2 </a></td> <td align="center" valign="top"><a href="index.php?link=page3"> Page 3 </a></td> </tr> </table> <? include($page); ?> </body> </html>
View Replies !
From Html Form To A Sitengine Link
My problem is this. I want a code, that would allow the phrase that i type in my html/php form, to be automatically put into a link in a search engine. I know how to do this with frames using variables, but how could i do that with opening new pages? How I would like it to go:
View Replies !
Grabbing A Link Out Of A Line Of HTML
I currently have a huge function that will crawl a page of a site and grab all the links off the page. There seems to be a problem though by grabbing the link text. I was curious how I can improve my function. So I was curious if anyone knows how I can make a function that will grab "info@test.com" out of this line: Just some text. <a href="mailto:info@test.com">Contact Us.</a>. The main problem I come up with is sometimes it will grab the "Contact Us" or it screws up when they have additional values in the <a href> tag.
View Replies !
Can I Inser Value From Mypage.html?src=[value] Into A Link?
Let's say I have an incoming link going to www.mydomain.com/page.html?src=[value] where the value is the id of an ad or whatever. Is it possible to insert this value in to an outbound link on www.mydomam.com/page.html, i.e. is it possible to create a link that will automatically pass on this value to a different page?
View Replies !
Example Of How To Make An HTML/Javascript Desktop And Windowing System
What's the point of something like this? As a php programmer, everything is already there for me, except a decent client-gui system. I could write php-gtk apps, but they're not as easy or as portable, html is php's native interface, and so maybe with some javascript... Does anybody else get frustrated at how long it can take to learn something apparently simple in javascript, and how quickly it can be forgotten because of the complicated syntax; or else how often it can be discovered that ones solution was based on a browser-specific feature? It may just be me, but for this reason I've made a collection of working, browser-independent scripts that produce an example windowing system and desktop environment, including a command line and a short manual. If any of this sounds like it would be useful to you, feel free to check it out. It's all one page, the source is well commented, and although I wrote it I am not trying to own it. Copy as much or as little as you want, make modifications and sell them. It gets updated periodically (when I feel like it) so please feel free to criticise or contribute. Feel free also to make a better version, either from scratch or based on mine, so that I have something to compete with and so that others can have more to choose from.
View Replies !
How I Can Make A List That Acts Like A Html Jump Menu?
how I can make a list that acts like a html jump menu (for a regular list I have to use a "Go" button in order to achieve the desired behaviour and jump menus I cannot use because they work only with links to other pages). For example,I want such a list filled with questions from my db and when I select one I want to see its possible answers; the page stays the same, only its data differs based on the selection. Or you can have a look at such a jump menu on this website, the one with options for geting to various sections of the forum.
View Replies !
Search Each Html File For Every Occurrence Of A Link
I am looking to transfer content of hundreds of html files into a database. I need to search each html file for every occurrence of a link, image if there is one present, alt text and anchor text. It should then be placed in several variables $link, $src, $alt, $anchor and placed into a csv file so I can import it into a database. The only thing that I have done so far is read the contents of the html file into a string. <a href="link.htm" target="_blank"><img border="0" src="example.jpg" alt="This is an example"><br>This is an example</a></td> So in this example, I need to retrieve link.htm, example.jpg, 'This is an example', and 'This is an example'.
View Replies !
Html Link For Local File Not Working
I tried a simple example for html link inside php file I have a file called file1.txt inside C: I put the following lines in a file and named it .html <html> <a href='C:file1.txt'> open file</a> </html> here the link works and the file opens upon clicking if the same file I named it .php and tried to run it using apache localhost here when you click the link, nothing happen and the file didn't open why?? knowing that if we put any website link it works , but if we put any file inside our computer it doesn't work.
View Replies !
How Do You Link To An External PHP Script In An HTML File?
I installed XAMPP, so everything should be configured properly. However, I'm still having problems. So, here are some of the questions I have. If anyone could help me out on any of them, that would be great. 1. What is a web server? How is it helping me write PHP? 2. When I open my PHP files in my browser, they are still not read properly. Any known reason why? 3. How do you link to an external PHP script in an HTML file? Is there a such thing, or am I totally clueless?
View Replies !
RegEx - Make HTML Lower Case Except Attribute Values
I'm in the middle of writing a function at the moment that uses a series of regular expressions to clean up some dynamically generated HTML from a WYSIWYG editor but I'm having a problem getting the HTML to convert to lower case correctly. I have the following expression to convert the tags to lower case: $strHTML = preg_replace("/(<[^>]+>)/ies", "strtolower('$1')", $strHTML); Naturally of course this changes everything about the tag to lower case, the tag itself, the attributes and the attribute values which is all good except that I dont want it to convert the attribute value to lower case. Code:
View Replies !
Help In Trying To Make A Web Page Counter
I'm trying to build a counter that will keep trach how many hits I got and where they came from. In my html pages I have a script of code that loads in an image. This image is a php file. When this file executes it adds one to the stack counter, The problem is that for the referring server, I alawyas get the server that is hosting the web page that is calling my web page counter. I'm assuming its because this is the server that calls the php code on my server. I have seen other companies do this, how do they do it???? This is what I have so far. On the client I insert the following code onto my web pages <img src="http://216.120.252.101/~multist/ws/add.php? customer=fred&phrase=google&server=tedserve&filename=fred.html" alt="boston kitchen design" width="267" height="90"> Where http://216.120.252.101/~multist/ws/add.php is my php script to update the stat counter On my stat counter server, $from=$_SERVER['HTTP_REFERER']; // $from='ted' $sql_string="INSERT INTO `tedpott_webstat`.`web_stat` ("; $sql_string= $sql_string."`customer`,`path_name`,`from_server`,`key_word_phr ase`,`PageID`,`server_name`,`file_name`)"; $sql_string=$sql_string." VALUES ("; $sql_string=$sql_string."'".$customer."','".$path."','".$from."','". $phrase."','".$pg."','".$server."','".$filename."'"; $sql_string=$sql_string.")"; print("<br>"); print("<br>"); print("second string b<br>"); print($sql_string); print("<br>"); if (!$results=mysql_query($sql_string,$dblink)) die("could not add new record"); print("updateds database ok"); // close databse connection mysql_close($dblink);.
View Replies !
Make A New Page In A Module?
I would like to hake a new page in a module. Often times at the bottom of a module or page you will see an option to go to next the next page, or you will see a row of number which will link you to the next page. This is what I would like to do. The main issue is that I would like it to keep the same style of the block that is in the first page, on the second page and etc. I'm not great at php so I downloaded an module called Module_maker. It's easy to use and an happy with the out come so far. The Module Maker has an html.text in it which I add html code to and it will show the code on the block inside the module. So.. I would like to have a second page and more which would be navigated to with a link somewhere on the page. keeping the same style. What would be very cool is if the only thing that changed when clicking "next page" would be the block its self.. That maybe going to far. Code:
View Replies !
Make DB Managing Page
I would like to create a PHP page, that I can insert info into my DB with it. like when you doing when signin-up to a board or smthng. how to do this?
View Replies !
Automatically Make A New Page
I managed to submit a post to my mysql data base. And then display it on the main page I did all this buy reading tutorials and am still very unsure on how it all works. I think I got some basics though. I submitted my post is there a way to get it to make the post turn into a link which will open a new page where I can let people reply to the post like any normal forum but I want to make my own so I can learn how it all works.
View Replies !
|