HTML Presentation Page For Uploaded Info?
I've seen a lot of posts about uploading files, but not much about what happens afterwards. Can someone point me to a tutorial, post or book which will help me solve this problem:
I'd like to have a form where users can upload a photo, add a short bio, put in some contact info, and have all of this information stored in a database (natch).
Then I'd like for this form to take this user's data and put it into an html presentation template. Ideally, members would sign in and be able to modify their own profiles as well as view other profiles.
View Complete Forum Thread with Replies
Related Forum Messages:
Sessions And Redirects - Send Info From Page One To Page Two.
I have a two part form, each part on a seperate page. I want to send info from page one to page two. Thought ok, I use session variables. The problem is that they don't get sent to the second page. All works fine on my local testing server, but when I go live session varables don't show. Has this something to do with header? Is there another way to get to the second page? Code:
View Replies !
Email Me This Info Page From A Order Confirmation Page?
How do i make a "email me this info" page from a order confirmation page? Basically someone enters some info in a form, then on submission is comes to my email. After submission, i want to have a text area where they can enter an email address to have the info emailed to them if they wish. You can see the page here, you have to enter info first, the email nbox on the second page (process.php) is non fuctional.
View Replies !
Extracting Info From HTML
Im needing some help with writing a PHP script. Basically all i want to do is write script that can extract data from a table in html format into a MySQL database on my server.
View Replies !
Passing Info From Html To Php
I'm trying to pass info from a "Drop list" in an .html form into a .php which will then query a database. It doesn't work and I wondered if I'm missing something easy? If I junk the dropdown list and just put a "textfield" there is no problem but I want to have the fixed choices list. Here is the code:
View Replies !
Pass Info From To HTML
I'm wanting to pass a value from PHP into a hidden input in HTML. I don't want it to travel in the URL if possible. for example to help paint the picture. From PHP I want to pass this: value="true" To HTML <input type="hidden" value="false">
View Replies !
Extracting Img Tag Info From HTML Source
I'm having a bit of a brain meltdown trying to figure this out. If anyone has a suggestion I could try, that would be excellent. I'm trying to extract specific pieces of data from an html source file. In particular image tag information. If my file contains lines similar to: <a href="images/picture.jpg" target="_blank"><img src="thumbnails/picture.jpg"></a> I'd like to be able to extract the a href URL and the img src as two seperate variables and ignore any other HTML source and tags inside of the file. For all intents and purposes ending up with an array of the following: $link[0]="images/picture.jpg"; $thumbnail[0]="thumbnails/picture.jpg";
View Replies !
Retrieveing Info Passed From Html
i have a flash banner on a page that when clicked sends the browser to another page. This banner is linked to a php file that counts the amount of clicks on the banner. In the html page for the flash banner I have: Code: <embed src="swfs/banner1.swf?clicktag=forms/tracking/bannertrace.php&clickheader=http://www.somewebsite.com" width="570" height="80" align="middle"> in my php file I have: PHP Code: <?php $traceFile = "banner/clicktrace.txt"; $clickURL = $_GET(clickheader); $fh = fopen($traceFile, 'r'); $theData = fread($fh, filesize($traceFile)); fclose($fh);$fw = fopen($traceFile, 'w'); $theData = $theData+1; fwrite($fw, $theData); However the clickheader variable that contains the URL does not get passed to the php file.
View Replies !
Filling My SQL Database With Info From HTML Source Code?
I am desperatly browsing around trying to find some way to add data to mySQL from raw HTML sourcecode. I basicly have HTML pages showing lots of info on work, and I want to take that info - add it to mySQL so I can sort, select and browse the information in a better way. Hope someone knows what I mean.. (many online textbased games have this on various fan pages for calculating purposes, ie. Earth2025 and Utopia)
View Replies !
Presentation Graphics W/PHP
I'm interested in producing presentation style graphics using PHP. Things like pie charts, bar graphs, etc. I have a couple of PHP books, but they only address basic drawing primitives.
View Replies !
Point Presentation With PHP
Is there any possibility to create Opern Office Impress or Microsoft Power Point presentation with PHP? [As one available in Perl] Anyone is working on such a project.
View Replies !
Two Layer Presentation
First, I don't want to use javascript. I'm happy with PHP and I have heard that IFrames can do this, I just don't know how. The page will have a largeish map, probably 500px wide and 1000px high. It will have imagemap hotspots at a number (probably 25) of locations. When a location is clicked, I would like to be able to show a <div>lots of info pulled from a mysql database</div> superimposed on the map. I would guess that opening a new window is one way. But it would be better (I think) to have a popup style window (especially a borderless one) hover over the original map. I know how to do it with javascript, but I'm concerned about users who have JS turned off or who have popup blockers.
View Replies !
Sending Page Info
for several different .php files (file1, file2, file3 ...) i want to have page numbering, ie, this is page 1, this is page 2... the files are accessed in different order order 1: file1, file2, file3 order 2: file2, file3, file1 but the page numbering should always be 1, 2, 3 regardless of actual file order. any ideas how this can be done?
View Replies !
Passing Info From One Page To Another
I have a dynamically generated list of check boxes with ids email1, email2, up to the end of the list of addresses. This list is then passed to the next page where all the addresses are concatenated and added to a database. At least that's the theory. I can't figure out how to dynamically get all the $_POST[emailx] variables, with x being 1, 2, to the end of the list.
View Replies !
Separating Logic And Presentation
I hear about the statement "Separating Logic and Presentation" a lot, but I'm not really sure what it means. Does it just mean to have all your HTML in separate functions so that when you make code it's 100% PHP in one file and another files is just a whole lot of functions filled with HTML? PHP Code:
View Replies !
Format/layout And Presentation
I am working on a site which is totally static based on HTML/JsScript done on Dreamweaver. I am trying to develop a CMS to attach to this existing site, in a way all the updates are done through the interface I am working on. The question is weather it is possible to keep the existing structure (format) of the page and replace the html tags with Php tags where needed. Since the structure of the page (the placements of the contents, photos etc) is intended not change except the data in the page. This is what I thought of doing to put all the necessary Php scripts (Db connection, Db Select etc. ) at the top of the html tags and insert the results in variables in the body e.g. ; <?php <img alt="" border=0 '.$size[3].'src="folder/'.$row['picture'].'"> ?>. Is this the right way of doing it or are there any other methods.
View Replies !
Multimedia Presentation Of Web Programming
I am teaching Web programming to students many of which are not very techinically interested (but this is still a part of their curriculum) I am looking for some multimedia based presentation that can help me convey some ideas / topics. One example of such a topic would be the role of the web-server in presenting server based dynamic web pages. This may seem quite abstract to some, and somebody out there must have had the need (and the resources) to produce an animation / web based film or some other facility to explain it. (e.g. some bubbles moving from the browser over the network, entering the server...).
View Replies !
Parent Child Presentation
I have been following the php, apache, mysql web development closely and am building a skeleton page (ch 4-7 ?) and doing a complete javascript validation before moving to the first switch/$_POST['step'] that branches to one of three states. the first state is selecting a resource (child) to add to the order(parent). when the drop down list box is populated and the submit button is pressed i want to end up at the same screen with a child record being present. being an absolute newbie to web programming i am unsure how to develop code where I can incrementally add child details and remain at (what appears to be) the same parent screen. I hope I have been clear in expressing my developmental needs.
View Replies !
Page Info Change On Submit
I have a menu on my site that is all pulled out of a MySQL database. So the links actually look like this: <a href="about">About Us</a> And when the user clicks on this link I want the page to go to the database and get the info for "about" and then refresh the page and display the info.
View Replies !
Opening A Page To Display The Right Info
I'm making a website where registered users can upload a photo as well as information. The main page will display all of the users' photos. When user1 clicks on, say, user5's photo i want a page to open up and user5's information. How do i do this? Every user has a username stored in the database along with their information and the url to their photo. Code:
View Replies !
Dynamic Image/link Presentation
I am now trying to convert the following html into dynamic php to generate 9 images per page. How can I go about this by reading the images and associated links from a mysql database, using a previous/next link at the bottom. Are there any good articles around on this: Code:
View Replies !
Parsing Info From Other Page (method POST)
- i want to get some info from the page XYZ to my page. XYZ page has a FORM where you can select DAY, MONTH, YEAR and you get the info about a day you selected. - now, if i want to grab the info from let's say 20. august 2002 my url will look like this: http://XYZ/file.php?day=20&month=8&year=2002. - THE PROBLEM is, their form has the POST method, which means, if i want to direct link the 20 august, it will bring me to the FORM page and not to DATE page. is there any ways to bypass this?? I REALLY NEED THAT INFO?!
View Replies !
Dynamic Content - Writing DB Info To A Page
I'm writing a website that works on similar lines as a dating site, where end users can enter their details and what they want to sell, which is then submitted on to a webpage, any people that are interested in that product, contact us and we then pass the lead to the person who is doing the selling. So basically teh site is acting as a middle man. I have done the database bit where the end user enters his details, we get emailed his details and his id (which is a an auto increment field) then there is a page called view.php which pulls up his details on a web page and there is then a submit and decline button. Teh decline button is the easy part, but the bit that I'm stuck on now is the submit part. And thus here is my question how do i write information that is held on a database to a webpage. But this webpage has to ADD and and not OVERWRITE what is already there as we want to create a listing? Code:
View Replies !
Pass Info Forward From A Redirect Page
I have a main page with 75% constant contents. I want to change the other 25% depending on what page calls the main page. Example: www.mysie.com/a.html www.mysite.com/b.html www.mysite.com/c.html www.mysite/x/y/z/mainpage.php Pages a, b, and c are redirect pages to mainpage.php How can I how can I open storya.txt in the mainpage.php when someone clicks on ~.com/a or storyb.txt if they click on ~ .com/b ?
View Replies !
Passing This Radio Button Info To New Page.
I have my users choosing from several radio buttons on a page(page1). When they click "submit" they should be given a table of results on another page(page2). Depending on which one they choose an X will appear in the correct box. Code:
View Replies !
Getting Current Page Info Into The Query String
I have a drop down list in a form, in a PHP page, the form is displayed via 'echo'. The FORM ACTION tags looks like this: echo "<CENTER><FORM NAME='choose_lib' METHOD='post' ACTION='viewpix.php?ctPos=360&ctWid=109&hsp=1&loc= XXX '>"; When the user selects a name from the drop down list, which is dynamic, how can I get that variable into that ACTION url where it currently says XXX ? All I can think of is that I am going to need an intermediate page, and that doesn't sound very efficient.
View Replies !
Dyamic Table Display For Picture Presentation
I am trying to practice good web coding technique and stay away from the dread iframes. (Just like the bogey monster under your bed when you were 5, but hidden in cyberspace =/ ) So here is an overview of what i am trying to do. Values are sent to the Picture Window using a function. Corresponding values trigger images to show up in the Picture Window dynamically. When the user clicks on pic3 the value is sent to the Picture window; this displays a larger image of "pic 3" is shown in the Picture Window. The variable passed corresponds to the images the user clicked on. For example the user click on pic3 a value of pic3-large.jpg is sent to the getPicture function which displays a larger image in that window. General layout of the function is written below. The question that I have is how can I capture the user clicks to send a value to the function getPicture($image)? My next question is how can I get pic3-large.jpg to show up in the pic3 table, while keeping all other parts static? The table id for the picture viewer is picture_view. I could use an iframe but I rather do this in PHP. Since the support for iframes is rather buggy; and really isn’t a cross browser solution. Here is a picture to better explain what im trying to do and below it is some code:
View Replies !
Embed Php Generated Html In Another Html Page
I am trying to include some php generated html in a page that is just a standard html file, NOT a php file. I have seen other html pages do this by including an src to the cgi script in script tags, like this: <script src="http://someurl.com/somescript.cgi"></script> the html page loads and the script is executed and the returned html is displayed in the calling page. So, I tried this: <script src="http://someurl.com/somescript.php"></script> It doesnt work!!
View Replies !
.html' Page Be Replaced By '.html.php'
Can a '.html' page be replaced by '.html.php' page via RewriteRule? To clarify, I'm using a software that formats the look of the site using .html pages. I'd like to add PHP code to that page but of course, it is not of the right page type. What I was wondering is Could I create a duplicate of that '.html' page, rename it to .g. '.html.php' and make the revisions and then just create a RewriteRule that redirects the '.html' page to the '.html.php' without generating an error? The alternative and undesired way of doing it would be to rename the original page to '.html.php' and find and revise ALL of the routines that call that page. That would create a revision nightmare especially upon upgrading the software.
View Replies !
Uploaded Files Dissapear Once Uploaded.
Basically when I upload a file, the temporary file that php/apache creates is there until the upload finishes, then it is instantly deleted! the information in the $_FILES array says that no errors were encountered, but when I do move_uploaded_file there is no file there. If I monitor the temporary directory (i have it set in php.ini to use a temp folder which the apache server has full read/write on) while i'm uploading a file (and before it completes) I can see the temporary file there as it is supposed to be -- then as soon as it finishes, its gone. Code:
View Replies !
Passing A Parameter From An HTML Page To A PHP Page
I want to pass a language value (EN/FR/DE etc.) from an Index HTML page to a PHP page with a language code in the call, so that the PHP page can select texts in that language. I would like to to it from an unordered list item if possible by extending the link ... <li><a href="scripts/pricelist.php???>Pricelist[/url]</li>
View Replies !
Sending "header" Info After HTML?
I am looking to use "header("Location:index.php");" in my code. Basically this will be called when the user logs in to redirect them to the home page but as you expect I get the usual "headers already sent message" Just wondering how to get around this? Do I use the ob_start() method or something?
View Replies !
Using PHP To Load Another Page Or Html Page
Ive got a PHP script, which if it ends correctly, i want load another PHP file or an HTML page automatically, ie without user intervention. The new page shoud replace the current page on the browser. Is there a PHP command or function which does this?
View Replies !
HTML Web Page Hyperlink To Php Web Page
I am still having a problem parsing a html page with php. Code in my HTML is <? php echo '<a href="index.php">Home</a><br /> <a href="login.php">Login</a><br /> ' ?> However the link is to the Login page is: file:///C:/Program%20Files/Apache%20Group/Apache2/htdocs/TeeJayUu/login.php I am using PHP 5.0.2, Apache 2.0.52, MySQL 4.0.21, and Windows XP SP2. All pages are in the htdocs folder and the following instructions have been followed: - Copy php5apache2.dll to Apache's module dir and rename it to mod_php5.so; - Copy php5ts.dll to Apache's bin dir. Finally, add the following line to your httpd.conf file: LoadModule php5_module modules/mod_php5.so Apache has been stopped and restarted. Help - I am lost for what else to do. I want to keep this local until I have got it working.
View Replies !
If Page = 'about' Show The About.html Page?
I wanted to do some kind of PHP script so that if the current page the viewer is trying to view is called index.php?page=about then it will use the php script to embed with an i-frame the about.html file into a cell in my web page's table. Basically, so that the whole page stays the same other than one cell of the table which is dynamic depending on the status of the index.php?page=whatever. Code:
View Replies !
Send Value From CSS Html Page To PHP Page
help me to find a way or script to pass value "digit" from CSS html page to php page which has funtion to accept value and search in database. for example, in CSS rollover image map. if a user select on particular place, that should call PHP page as well as send value to php page.
View Replies !
Putting Info Into A DB / Passing Info Between Pages
I have run into an issue...I have posted previously, but my scenario has changed. Here is the situation... If a user clicks on a link ('abc123' for example) I want to insert into my database some predefined information about 'abc123' - I have assigned a value that is echoed in future pages for 'abc123'. So, what I need is some mechanism to, when a user clicks 'abc123', have a pre-defined username and password be entered into the database. I need this so future pages can utilize the session values.
View Replies !
PHP In Html Or Outside Html Page?
what's better, php code in html page or outside the page in seperate php file...the thing is i have my sql data in that code and i don't want people to see it, can people open up the php files?
View Replies !
How Do I Add A <? To Page? HTML - <?xml
I am trying to change my site from asp to php. but have encountered a problem The start of my pages have always been: <?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> My problem is when I add <?xml ... the php parser kicks in and starts complaining. If I leave the <?xml version="1.0" encoding="iso-8859-1"?> Off the page is displayed but not correctly in IE! Questions: 1) How can I make php let me add the: <?xml version="1.0" encoding="iso-8859-1"?> 2) Thinking about is I'm not 100% sure why I originally added the <?xml version="1.0" encoding="iso-8859-1"?> (I made the site over a year ago) - does anyone know why it is needed for the page to display correctly in IE?
View Replies !
|