HTML - Pulling From A Directory
I'm wanting to be able to look into a certain directory and pull whatever is in there and make it a link on the page so the person that is vewing it can pull up what is in that directory. All that is going to be in the directory is going to be documents, and I don't want to have to edit my html document every time there is a new file put into the directory. Is there a way to do this in HTML?
Similar TutorialsI have a site that I'm wanting to sell goods on. On a particular page, I want a user to be able to click on a "purchase" link and have a popup show with a form to fill out that gets sent to me via email (Im going to be using PayPal for the processing). The url for each item is different because the last digit is the unit number of the item. Here is an example: http://www.sthompsonphoto.com/index.php?showimage=17 How can I add "17" to a field in the form when the pop-up happens? Any ideas? Thank you very much in advance! Scott T. Alright, I finally figured out what I need to do. Below are two templates that are inserted in my vBulletin template design. I have modded them somewhat, but now I am stuck. I am trying to get it to look like the following: http://www.wowhq.com/forum/calendar....=2007-4-18&c=1 -- located towards the bottom of the thread. If you could help me figure out how the heck to finish coding this, it would be much appreciated. NOTE: I have created the dropdown box in the second template. What needs to happen is that data needs to get pulled from the user's answers on the calendar_rsvp_form template and displayed in two separate columns on the calendar_rsvp template. Look at the link above to see exactly how the data is output. calendar_rsvp template: Code: <if condition="!$eventempty"> <hr> </if> <if condition="$rsvp_yes"> <b>$vbphrase[calendar_rsvpd] $vbphrase[yes]: $rsvp_yes_count </b> <if condition="$eventinfo[rsvp_max_guests]"> (<phrase 1="$rsvp_yes_members" 2="$rsvp_yes_guests">$vbphrase[x_members_and_y_guests]</phrase>) </if> <table width="100%" border="0"> <tr> <th width="20">Count</th> <th width="100">Username</th> <th width="100">Class</th> <th width="100">Spec</th> <th width="200">Date Registered</th> <th>Comment</th> </tr> <tr> <th width="20"></th> <th width="100"></th> <th width="100"></th> <th width="100"></th> <th width="200"></th> <th></th> </tr> </table> </if> <if condition="$rsvp_maybe"> <b>$vbphrase[calendar_rsvpd] $vbphrase[maybe]: $rsvp_maybe_count</b> <if condition="$eventinfo[rsvp_max_guests]"> (<phrase 1="$rsvp_maybe_members" 2="$rsvp_maybe_guests">$vbphrase[x_members_and_y_guests]</phrase>) </if> <ul><if condition="$vboptions[rah_rsvp_showavatar]"><table>$rsvp_maybe</table><else />$rsvp_maybe</if></ul> </if> <if condition="$rsvp_no"> <b>$vbphrase[calendar_rsvpd] $vbphrase[no]: $rsvp_no_count</b> <ul><if condition="$vboptions[rah_rsvp_showavatar]"><table>$rsvp_no</table><else />$rsvp_no</if></ul> </if> calendar_rsvp_form template: Code: <form action="calendar.php?do=getinfo&e=$eventinfo[eventid]&day=$rsvp_day" method="post"> <input type="hidden" name="do" value="getinfo" /> <input type="hidden" name="cdo" value="rsvp" /> <input type="hidden" name="day" value="$rsvp_day" /> <input type="hidden" name="e" value="$eventinfo[eventid]" /> <input type="hidden" name="s" value="" /> <if condition="$bbuserinfo['userid'] AND $expires[0]>=0"> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <tr><td class="alt2"> <if condition="$expires[unixdate]"> <if condition="$myrsvp"> <b><phrase 1="$rsvp_day_formatted" 2="$myrsvp">$vbphrase[calendar_rsvp_yoursvp]</phrase></b><br /> <font class="smallfont"><i><phrase 1="$expires[date]">$vbphrase[calendar_rsvp_maychangeby]</phrase></i></font> <else /> <b><phrase 1="$rsvp_day_formatted">$vbphrase[calendar_rsvp_attendquestion]</phrase></b><br /> <font class="smallfont"><i><phrase 1="$expires[date]">$vbphrase[calendar_rsvp_changeby]</phrase></i></font> </if> <br/> <else /> <if condition="$myrsvp"> <b><phrase 1="$rsvp_day_formatted" 2="$myrsvp">$vbphrase[calendar_rsvp_yoursvp]</phrase></b><br /> <font class="smallfont"><i>$vbphrase[calendar_rsvp_maychange]</i></font> <else /> <b><phrase 1="$rsvp_day_formatted">$vbphrase[calendar_rsvp_attendquestion]</phrase></b><br /> <font class="smallfont"><i>$vbphrase[calendar_rsvp_changelater]</i></font> </if> <br/> </if> <br/> <INPUT TYPE=RADIO NAME="response" VALUE="Yes" <if condition="$myrsvp=='Yes'">checked="checked"</if>>$vbphrase[yes] <INPUT TYPE=RADIO NAME="response" VALUE="Maybe" <if condition="$myrsvp=='Maybe'">checked="checked"</if>>$vbphrase[maybe] <INPUT TYPE=RADIO NAME="response" VALUE="No" <if condition="$myrsvp=='No'">checked="checked"</if>>$vbphrase[no]<br \> <if condition="$eventinfo['rsvp_max_guests']"> <i>$vbphrase[calendar_rsvp_guests_prompt] <input type="text" name="guests" id="guests" size="3" value="$myguests"> $vbphrase[calendar_rsvp_guests]. (<phrase 1="$eventinfo[rsvp_max_guests]">$vbphrase[calendar_rsvp_guest_limit]</phrase>)</i> </if> <br/>  <b>Class/Spec:</b> <select name="class"> <option value="Druid (Feral Combat)">Druid (Feral Combat)</option> <option value="Druid (Restoration)">Druid (Restoration) </option> <option value="Druid (Balance)">Druid (Balance)</option> <option value="Hunter (Beast Mastery)">Hunter (Beast Mastery)</option> <option value="Hunter (Marksmanship)">Hunter (Marksmanship)</option> <option value="Hunter (Survival)">Hunter (Survival)</option> <option value="Mage (Arcane)">Mage (Arcane)</option> <option value="Mage (Fire)">Mage (Fire)</option> <option value="Mage (Frost)">Mage (Frost) </option> <option value="Paladin (Holy)">Paladin (Holy)</option> <option value="Paladin (Protection)">Paladin (Protection)</option> <option value="Paladin (Retribution)">Paladin (Retribution)</option> <option value="Priest (Discipline)">Priest (Discipline)</option> <option value="Priest (Holy)">Priest (Holy)</option> <option value="Priest (Shadow)">Priest (Shadow)</option> <option value="Rogue (Assassination)">Rogue (Assassination)</option> <option value="Rogue (Combat)">Rogue (Combat)</option> <option value="Rogue (Subtlety)">Rogue (Subtlety)</option> <option value="Shaman (Elemental)">Shaman (Elemental)</option> <option value="Shaman (Enhancement)">Shaman (Enhancement)</option> <option value="Shaman (Restoration)">Shaman (Restoration)</option> <option value="Warlock (Affliction)">Warlock (Affliction)</option> <option value="Warlock (Demonology)">Warlock (Demonology)</option> <option value="Warlock (Destruction)">Warlock (Destruction)</option> <option value="Warrior (Arms)">Warrior (Arms)</option> <option value="Warrior (Fury)">Warrior (Fury)</option> <option value="Warrior (Protection)">Warrior (Protection)</option> </select> <br/> <br/> <if condition="$maxlength"> <table> <tr> <td><b>$vbphrase[comment]:</b><br \> <td align="right"><font class="smallfont"><i>($vbphrase[calendar_rsvp_maxlength] = $maxlength)</i></font></td> </tr> <tr> <td colspan="2"> <textarea name="comment" rows="2" cols="80">$mycomment</textarea> </td> </tr> </table> </if> <input type="submit" class="button" value="$vbphrase[submit]" /> </td></tr> </table> </form> </if> <if condition="$expires[0]<0"> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <tr><td class="alt2" align="center" valign="center" height="75"><font size="2"><b>$vbphrase[calendar_rsvp_closed]</b></font></td></tr> </table> </if> http://www.website.com/thisisapage/ ^Can somebody explain how to set up directories on my website as such. Because this seems to be saying that a directory is a file, even though I know that is not the case. Shouldn't all pages have an extension of some sort and does this have something to do with SSI or something? Hey all! I am having trouble figuring out how to fill a list with the names of the folders in a certain directory anyhelp would be great! EDIT: I need to figure out how to get all the folders names from "www.mysite.com/files/" and add them to a list in dreamweaver and what ever one i click on it loads all the files from that folder to another list... anyone got any direction i should go... I pretty clueless but am still googling info trying to catch something... Thanks! Hey I've got this issue with a website of mine even though my html link says /members/patrolroster.html once i am there (patrolroster.html) all other links from that (and all pages inside the /members directory for that matter) page via the nav menu get /members affixed onto them (eg, what should just be index.html turns into /members/index.html). My html says it should go to index.html but where is /members coming from? Im puzzled at why it affixes the directory the file is in onto all outgoing links. Take a look at the site if you like its, http://www.wyeriverslsc.asn.au/ Any help is appreciated, Tom Hi, I'm building a site for a dj record pool. I set up a paypal subscription button and ".htaccess, .htpasword, process_txns, paypal.pl" scripts on the site. I'm looking for a way to provide individual links for all mp3 downloads (10 gigs worth), without having to type in all song titles every week when new files are uploaded. Is this possible? Thanks hi, im creating a script where users will be able to upload files to my site from a form, i was wondering if i could stop files from being executed from the upload directory because if a user desides to upload a harmfull php file them execute it on the site, well it would be bad. so, can i do this by setting the directory permissions (chmodd) to 444, only allowing reading? thanks! I am working with a new client and am trying to access their admin area on the ecommerce site. I think I found the correct directory but am not able to get past a directory security pop up that asks for login information. Of course the client does not have this. I have FTP access and am trying to figure out if I can get around this pop up and finally get to the admin login. There is a .htaccess file with the following contents: PHP Code: #AuthType Basic #AuthName "OS Commerce Administration" #AuthUserFile "/home/lucid/.htpasswds/catalog/admin/passwd" #require valid-user I've removed this file completely and I still get that pop up. Can someone help. Please. I have a folder/directory with lots of photos in it. I want visitors to be able to click a link and download the entire directory (rather than having to load every individual photo file). This way, they can copy to their own computer & perhaps burn a CD. I'm using <a href="http://mysite.com/images/CD_directory/"> but this is NOT working the way I want; it shows an INDEXING of all the photo files, and doesn't allow for clicking the Directory itself. How can I get around this & offer this Directory for download? Thanks! I need a directory chooser control on my webpage please suggest a solution ASAP.... <input type="file"/> this creates a file chooser the same way I need a directory chooser.... Any solution will do, be it Javascript or ActiveX. Prompt response would be highly appreciated I made a directory lister with the following attributes: Images will be displayed as thumbnails Thumbnails are automatically generated Page is automatically updated and redrawn on each access All colors, fonts, and sizes are customizable One index file is required to be placed in each directory It is simply a graphical directory lister - nothing needs to be configured for it to work http://www.phpstory.net/graphics/75 I'm looking for some feedback for improvement and can pretty much make anything happen. It's complete for the most part but I guess first thoughts and suggestions would be helpful in completing the script. I want to make it publicly available at some point and I haven't really gotten enough feedback to call it "finished". It was coded by me 100% - nothing has been borrowed or copied! Thanks!! The IT Industry in India is booming! Here is a great opportunity for you to sell your products and services to this industry which is rapidly expanding. Subscribe to India's most comprehensive Online IT Directory! Features: >> You will be able to search an IT Company (ies) >> Drill down to details like Address, Area, Pin, Phone, Fax, Email, Website, Year of Establishment, About the company. >> Product & Services offered by the company. >> Contact details of Top executives including Managing Director, President, CEO, CTO, CFO, HR Manager. etc. >> Continously updated and verified. >> Generate mailer labels by executive title. To subscribe logon to www.itdatahouse.com Regards The itdatahouse.com Team +91 80 23537776 ext 1 URL: http://www.itdatahouse.com Hi, I'm trying to create my very first webpage. I've got to the final step of uploading it to my host however when I visit the URL, rather then seeing the site I've put so much work into all I see is the following- Directory Listing Denied This Virtual Directory does not allow contents to be listed. This is how I made the site, designed and made on Macromedia FIreworks 8. I then proceeded to slice the page (it's only a single page) and exported as HTML & Images. I then opened the saved HTML file in Macromedia Dreamweaver and proceeded to correct the src parts to point where I uploaded them to my host. Now, once I'd done all that, I upload the saved HTML file to my main htdocs folder via FTP and it should work? But it doesn't, it simply displays the above error message. I'm pulling my hair out, would anybody be kind enough to have a look at my HTML file point out where I am going wrong? Thanks in advance. I use a program (Guardian) to send me notifications when an error occurs on my site (404, 403 etc.) These notices contain the URL causing the error and the referring URL. Lately I have been getting numerous notifications with URLs to directories without index files (On a side note, these URLs also contain within them, urls to other sites. I assume this is some spammer technique and I am not too concerned about this in this post but if someone can shed some light on how/why they (the spammers) do this I would appreciate it.) My purpose in posting here is to find out about the use of index files in directories. I have read that this is a good idea, but I have yet to hear why except that in case someone navigates to the URL of the directory rather than the actual page URL, then they will not get a 403 error message, but this seems like a rather weak reason to me. Is there another reason? SEO reason? Technical reason? If I find good reason to do this, is it enough to just put a blank index file in each directory? If so why? What purpose does it serve (aside from thwarting the spammers doing what I described above.) Thanks in advance for your help. Hello forum, I have a very simple question which I can't solve: My html code looks something like this (in index.html with a directory of 'next/' which has the file index.html: HTML Code: <html><head /><body> <a href="next/">Continue</a> </body></html> Then when the link is clicked, it gets a permission error (meaning the browser can't find anything in the directory). Why is this? Shouldn't it automatically get into the index.html? thanks in advance, drmota i was wondering if there was a simple method or a program that can find all active links linking from a certain directory. for example, say a website like http://www.website.com/index.html has 15 active links and 5 broken links. i want to be able to view a list of all the active links on the page without actually clicking all the links on the page. is that possible? if so, how? My daughter's wedding inviations have a url on them that was misprinted "www.website.com/wedding" which should have been "www.website.com/wedding.html". Is there a way to Redirect what was misprinted as a directory, to go to the actual web page "www.website.com/wedding.html"? I have intermediate knowledge building html web pages using Dreamweaver (I know some Javascript and CSS). Thank you from a desperate father-of-the-bride!! I need to display a web form from which the user can select a directory -- not a file. This seems like it ought to be easy, but I can't find an explanation of how to do it. Here's the code I wrote (with a little PHP removed): Code: <form enctype="multipart/form-data" action="ImportExec.php" method="GET" > Select the <em>directory</em> containing .eml files.<br><br> <input type="file" name=directoryPath> <input type="hidden" name="scriptPath" value="xxxxxxxx"> <input type="hidden" name="domain" value="yyyyyyyy"> <input type="submit" value="Open directory"> </form> As it is, this lets me choose a file -- not a directory. If I try to select a directory, it just opens the directory and invites me to choose a file from it. I have a little problem with my server, I know it is EASILY solved, but I don't know how. The pages work fine if they are in ROOT, like index.html in ROOT is fine, but when I make a new HTML in a subfolder, ROOT/folder/index.php All the coding messes up and cannot load the files from the root. E.G: My CSS is in my root, cssmovietick.css, this works fine for the php files in the root, but when I go into the sub folder, it cannot find it. Here is the code to find the CSS. Quote: <link href="cssmovietick.css" rel="stylesheet" type="text/css" /> I'm pretty sure you understand Hi, I'm running a personal server on my PC and have an image gallery script that serves up files outside of the root directory. I am trying to add image tags to folders on my hard drive and it will not display. If I go to the address directly, it shows up fine. Here's what I'm working with: <img src='file:///media/sda3/pic/toronto/beach000.jpg'> shows nothing but going to the address does. Anybody know what to do? |