NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page PHP + html... HELP!

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search
7 members in live chat ~  


Closed Thread
 
LinkBack Thread Tools
Old 03-29-2005, 12:44 PM THREAD STARTER               #1 (permalink)
Account Suspended
 
vip-ip's Avatar
Join Date: Jan 2005
Location: root@localhost
Posts: 4,011
vip-ip is an unknown quantity at this point
 



PHP + html... HELP!


I'm making an image uploading script.

This is what's displayed after the image is uploaded successfuly:

Code:
echo "Your file was uploaded sucessfully!<br>\n"; }
echo "http://localhost:8181/".$HTTP_POST_FILES['userfile']['name']."<br>\n";
echo "File Name: ".$HTTP_POST_FILES['userfile']['name']."<br>\n";
echo "File Size: ".$HTTP_POST_FILES['userfile']['size']." bytes<br>\n";
echo "File Type: ".$HTTP_POST_FILES['userfile']['type']."<br>\n";
How do I make the second line a link? This is what it looks like:
http://x2.putfile.com/3/8714471391.gif

How do I make the selected, and arrow-pointed space a link to that directory?

Thanks.
vip-ip is offline  
Old 03-29-2005, 02:55 PM   #2 (permalink)
NamePros Regular
Join Date: Feb 2004
Location: Student @ UConn
Posts: 411
gamex has a spectacular aura aboutgamex has a spectacular aura about
 



You mean something like this?
PHP Code:
echo "<a href=http://localhost:8181/".$HTTP_POST_FILES['userfile']['name'].">http://localhost:8181/".$HTTP_POST_FILES['userfile']['name']."</a><br>\n"
I am not sure if thats what you need.
????: NamePros.com http://www.namepros.com/programming/78693-php-html-help.html

Sorry if I am missing a quote or something in there
__________________
Joe
gamex is offline  
Old 03-29-2005, 03:20 PM THREAD STARTER               #3 (permalink)
Account Suspended
 
vip-ip's Avatar
Join Date: Jan 2005
Location: root@localhost
Posts: 4,011
vip-ip is an unknown quantity at this point
 



Wow, I can't believe it works... I tried exact same thing but it didn't o_0
Thanks, reputation updated.
vip-ip is offline  
Old 03-29-2005, 03:27 PM   #4 (permalink)
NamePros Regular
Join Date: Feb 2004
Location: Student @ UConn
Posts: 411
gamex has a spectacular aura aboutgamex has a spectacular aura about
 



Thanks, glad it worked. Good luck with the rest of your coding. Let me know if you need any other help.
__________________
Joe
gamex is offline  
Old 04-02-2005, 10:21 PM THREAD STARTER               #5 (permalink)
Account Suspended
 
vip-ip's Avatar
Join Date: Jan 2005
Location: root@localhost
Posts: 4,011
vip-ip is an unknown quantity at this point
 



Another question....
I have a BidVertiser code after this text is showed. Here:

Code:
echo "File Name: ".$HTTP_POST_FILES['userfile']['name']."<br>\n";
echo "File Size: ".$HTTP_POST_FILES['userfile']['size']." bytes<br>\n";
echo "File Type: ".$HTTP_POST_FILES['userfile']['type']."<br>\n";

} else { echo "<br><br><b>Incorrect file type.</b><br>\n"; exit; }
}
?>
<br><p>
<font size="1"><b>Please support us by clicking on this ad. Thank you!</b></font><br><br>
<!-- Begin BidVertiser code -->
<SCRIPT LANGUAGE="JavaScript1.1" SRC="http://bdv.bidvertiser.com/BidVertiser.dbm?pid=5078&bid=10316"></SCRIPT>
<noscript><a href="http://www.bidvertiser.com">Pay per click advertising</a></noscript>
<!-- End BidVertiser code -->
</p>
BUT - it only shows after the file is uploaded.... if you go to www.fullfile.com you can see an example. The ad only showed after the image is uploaded, so I made the ad before that text, with an include:
????: NamePros.com http://www.namepros.com/showthread.php?t=78693


Code:
<p>
<?
include("ad.txt");
?>
</p>
<br>
<p>
<?php


And the code goes on.....
How do I fix this? I want my ads to show every time, below the PHP code... Help!
vip-ip is offline  
Old 04-02-2005, 11:21 PM   #6 (permalink)
NamePros Regular
Join Date: Feb 2004
Location: Student @ UConn
Posts: 411
gamex has a spectacular aura aboutgamex has a spectacular aura about
 



Remove exit; from your code
__________________
Joe
gamex is offline  
Old 04-02-2005, 11:52 PM THREAD STARTER               #7 (permalink)
Account Suspended
 
vip-ip's Avatar
Join Date: Jan 2005
Location: root@localhost
Posts: 4,011
vip-ip is an unknown quantity at this point
 



Nope, doesn't work... Tried that
vip-ip is offline  
Old 04-03-2005, 06:17 PM   #8 (permalink)
NamePros Regular
Join Date: Feb 2004
Location: Student @ UConn
Posts: 411
gamex has a spectacular aura aboutgamex has a spectacular aura about
 



Can you post or email me the whole code?
__________________
Joe
gamex is offline  
Old 04-03-2005, 09:54 PM THREAD STARTER               #9 (permalink)
Account Suspended
 
vip-ip's Avatar
Join Date: Jan 2005
Location: root@localhost
Posts: 4,011
vip-ip is an unknown quantity at this point
 



AIMing... 10x in advance for help.
vip-ip is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Tutorial: Getting started with PHP (The Basics) deadserious Webmaster Tutorials 60 11-17-2007 11:35 AM
Googlism - What does google think of you? deadserious The Break Room 55 12-15-2005 09:09 AM
[For Hire] - CGI, PHP, ASP, JSP, SQL, JAVA CLASSES , HTML, CSS, XML, XHTML Programmer KougarZ28 For Sale / Advertising Board 0 11-08-2004 06:08 PM
PHP and how to sort a HTML header by clicking on it Billard Programming 8 11-30-2003 11:27 PM

 
All times are GMT -7. The time now is 02:51 PM.

Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger