Create An Html Link
Is it possible to create an html link for in internal *.html file where $filename.html is posted from a form?
View Complete Forum Thread with Replies
Related Forum Messages:
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 !
Create A Link?
If I have a field in my database table that is a link (for example - http://www.phpfreaks.com), is there a way to use PHP to turn that URL into a link when displayed on my php page? I'd prefer not to have to the a href tag and info around the link itself into the database table.
View Replies !
Create A Link
When a user clicks on the link they get prompted with a login. They log in and they get access to a particular webpage on the site. Is this something that can be easily done with PHP?
View Replies !
Link Two Txt Files Together To Create One
I have two text files. They both have an ID that is the same. One file has an ID and a phone number. The other file has the same ID, a different ID and extra information. What I am trying to do is link one file with the second file to create one file. Problem is I do not know how to do this. I am a beginner at php but any and all help would be great. Code:
View Replies !
Using A Symbol To Create A Link
I have a text link: $text = "Hello `TTU will win it all!"; How can I write a script that will look for the ` symbol, search the DB with the team abbreviation, and output a link to the team page?"; I would like the search to read the $text variable and change it to this: $text = "Hello <a href="team.php?team=TTU">Texas Tech</a> will win it all!";
View Replies !
Create A Mailto-link
I have two tables (news and user) where the field NAME is common in both. In the user-table I also have the field EMAIL. I want to echo NAME from the news-table and create a corresponding mailto-link by using the email-address in the user-table.
View Replies !
Create A Dynamic Link
I need to create an RTF document with PHP. Actually, I am using an already created RTF document which with strings like %var% that I replace with $var before sending the document. I need to create a link like http://www.example.com/id_content=125 but my problem is that in the document produced : I can read http://www.example.com/id_content=125 But if I click on the link it goes to http://www.example.com/id_content=%id_content%
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 !
Create A Link To Delete An Image?
I'm making a really simple cms, but having problem deleting images. I've managed to create a page to upload the images to a folder. I also have a page that shows all the images and file names. Now I'm trying to add a link to delete images, but I can't get it to work. First of all I don't know what to put in the href tag...? Someone said I should create a new page that deletes the image and then redirects you back to the page displaying the images...? Code:
View Replies !
How To Create Symbolic Link Within A Script?
it seems that I have the following issue when trying to create a symbolic link within a script: FROM COMMAND LINE: The owner is set to myself. Thus, it works. FROM WEB PAGE: It doesn't work as expected. I know that it runs as one user at the command line and a different user from the web page. Thus, is it possible to do the following within the script: Code:
View Replies !
Create An Automated Continued Link
PHP Code: <?php //here mysql grabs the story.. and assign them properly! //the function function Limit_Words($string, $length, $ellipsis = "...") Â Â Â { Â Â Â Â Â Â Â $words = explode(' ', $string); Â Â Â Â Â Â Â $curindex = 0; Â Â Â Â Â Â Â $wcount = 0; Â Â Â Â Â Â Â foreach($words as $value){ Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â $wcount += strlen($value)+1; if($wcount>$length-strlen($ellipsis)){ Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â break; Â Â Â Â Â Â Â Â Â Â }
View Replies !
Pg_connect(): Cannot Create New Link. Too Many Open Links (0)
Fedora Core 2, httpd-2.0.54-10.2, php-4.3.10-2.4, postgresql-7.4.7-3.FC2.1 Using a test.php that includes: <?php pg_connect("host=localhost dbname=db_name user=user password=password$"); phpinfo(); ?> I get PHP Warning: pg_connect(): Cannot create new link. Too many open links (0) in /home/www/mywebsite.com/html/index.php on line 2 I did have a line extension=pgsql.so in /etc/php.ini but have removed it. I do have /etc/php.d/pgsql.ini that contains the same line. That's the solution that all responses I've found have suggested. What else can I try?
View Replies !
How To Read An Uploaded Filename To Create A Link ?
I want to read an uploaded filename, say "mypic.jpg" to create a link to this image without having to ask the users to enter the filename "mypic.jpg" when uploading it. My upload code works file but it's not on the same page. I'm working on my "index.php" page and included the upload.php page "<?php include("upload.php"); ?>" in it. Here's the sample of my code in the upload.php page Code:
View Replies !
Read Off An Uploaded File Name To Create A Link?
I want to read an uploaded filename, say "mypic.jpg" to create a link to this image without having to ask the users to enter the filename "mypic.jpg" when uploading it. My upload code works file but it's not on the same page. I'm working on my "index.php" page and included the upload.php page "<?php include("upload.php"); ?>" in it. Here's the sample of my code in the upload.php page (the code for the form is separate and not included here): Code:
View Replies !
Create A Link In A Table From Echo 'ed Sql Data
im using the following code to output everything in a database table under headings in an html table untill theres no more data left. The headings are things like name address etc. could i make it so when all the data is shown each name or ID becomes a link and when clicked takes the user to a more detailed page on the selected client. because of the way the table is generated there is no where to place link tags. is there a more appropriate way that is more editable? it would be nice to have checkboxes at the edge of each customer also to enable a complete status or deleting a client from the table. Code:
View Replies !
Create A Log Off Button/link To Allow User To Sign Off
Before I start on rebuilding the public area of my current project, I have built an 'admin only' area where all the material for the site is inputted. My question relates to this 'admin only' area which is accessible only via passwords as you would expect. I am new to PHP/mySQL and was wondering can I create a log off button/link to allow me to sign off and my brother to sign on using the same computer? It's probably quite simple, but no matter how hard I search though the books and on the net, I cannot find a solution?
View Replies !
Create Popup Windows When Clicking On A Link.
How to create popup windows when clicking on a link. I have managed to do it using javascript, but as you know search engines have difficuty reading javascript. Also i would like to know how to remove the address bar and file bar from the top of the page when it happens.
View Replies !
Create Basic Pages Which Pull Different Ini Documents Per Link.
I'm having some problems with a very basic PHP script. This all was working fine on my test server, but as soon as I moved it, it doesn't seem to be working at all. I am trying to create basic pages which pull different ini documents per link. The code I have is: <?php if (empty($area)) { $area="home"; } ?> and where I want the text, I have: <?php if($area){include("content_includes/$area.inc"); } ?> It keeps pulling up the home page, evidently it's not reading anything else. The path is correct. I just don't get it.
View Replies !
Create Multimap Link With Database Field Values - How?
I've got a MySql database that stores (amongst other things) a latitude and longitude for a place. I want to create a hotlink on my page listing that links to a multimap.com map for each record. For example, for 10 Downing Street London, Multimap use the format: PHP Code:
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 !
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 !
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 !
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 !
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 !
Create HTML Page
I would like to make a form that once you insert data into the form,it ll automatically create a html format of the data you entered in a html and save it in a folder! How do i go by doing this?
View Replies !
Create A New Html File
how to open and edit or add a file but ,I don't know how to create a new ".html" or ".txt" file? I have STFW and STFM but still maybe i'm blind.
View Replies !
Create Html Table
tryin to get a table to add a new td /td for every result from the Db. but can't for life of me figure it out... the nubers are the results and there are 3 required infos from each entry,(abc) so if there were 4 results it would have a 4a,4b,4c... its prob really simple but i cant get it! how would i print it via PHP? Code:
View Replies !
Create HTML Emails
I've been trying to create HTML emails but when i receive the email created by this script the link comes out as text do anyone have any idea why this might be? and what apoach would be best to solve it. 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 !
How To Create Html List From Such Array ?
I've got an example array like this: $myArr = array( array("jj", "0", "jjj"), array("ee", "0", "eee"), array("bb", "ee", "bbb"), array("ll", "ee", "lll"), array("ff", "0", "fff"), ) Where each row is an array with columns: id of list element, id of parent list element ("0" means main node) and content of the element. So, from my array I'd like to create a list like this: <ul> <li>jjj</li> <li>eee <ul> <li>bbb</li> <li>eee</li> </ul> </li> <li>fff</li> <ul>
View Replies !
Create Html Table With Php Result?
I'm looking to display 5 records in one rows, from the database. What i mean is, basically, let's take the "emails" as an example. I have a table with 100s of email addresses. Now i want to display these email addresses on a html table, but i want to display only 5 email adresses per table row, then the next 5 in the next table row and so on.
View Replies !
PHP Create HTML Email Inserts '!'s
I'm trying to create an email and when it sends the email, it mostly works except that there are '!' inserted at some spots. Checking the html source of the email, looks like they are placed at the end of long lines. I'm assuming there is some issue with the encoding, but searching through groups, nothing I've tried has worked. Can someone let me know if I should be doing something differently with my headers for an html email? I'll change emails to null@null.com. Thanks! $headers = "X-Mailer: PHP " . phpversion() . " "; $headers .= "From: null@null.com "; $headers .= "Reply-To: null@null.com "; $headers .= "Content-Type: text/html; "; $headers .= "charset="iso-8859-1" "; $headers .= "Content-Transfer-Encoding: 7bit ";
View Replies !
Script To Create Html File
I'm looking for a php script that will look in my images folder and for each image in there, create an html file named <imagename>.html and store it in a folder called "pages". I currently use the code inserted below that scans my image folder, creates an xml file that contains a list of the images and the my Flash image gallery reads the xml file to create the gallery. but I would rather do it by the method I'm requesting above and get away from flash. Any ideas? Even if there's a way to modify the code below to do what I want, that would be great. Code:
View Replies !
Create Form Linked To Html
I need to access an SQL database from a webpage so users can update information directly to the database (in the form of a "form"). There are a few fields from different tables in SQL that I need on the form. I have no idea how to even begin. Someone mentioned that PHP is the way to go and I've started looking through tutorials, but thought I would post the question to see if this is even the right language to use.
View Replies !
Combining BBcode To Create One Html Tag
I'm working on some BBCode and I was wondering if it is possible to combine two bbcode tags to create one span tag after the preg_replace e.g. Code: [font=Arial ][b ][color=red ]Text[/color ][ /b][/font ] HTML Code: <span style='font-family:Arial;font-weight:bold;color:red;'>Text</span> instead of HTML Code: <span style='font-family:Arial;'><span style='font-weight:bold;'><span style='color:red;'>Text</span></span></span> Of course I'd need it for multiple instances of nested BBcode tags within the same message.
View Replies !
Create A New .html File On My Server...
i have some data in a variable ($message) that is being emailed with the php's mail() function (an html email actually)...i'd like to also take that html data in the $message variable and have my script also make a new .html (with any random name) file on my server with that $message data, any easy way to do that?
View Replies !
|