Dynadot Aftermarket: discover domain gems worth investing in. Visit our aftermarket.

PHP + html... HELP!

SpaceshipSpaceship
Namecheap AuctionsNamecheap Auctions
SpaceshipSpaceship
Watch

vip-ip

Account Closed
Impact
24
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.
 
0
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
You mean something like this?
PHP:
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.

Sorry if I am missing a quote or something in there :)
 
1
Close
Wow, I can't believe it works... I tried exact same thing but it didn't o_0
Thanks, reputation updated.
 
0
Close
Thanks, glad it worked. Good luck with the rest of your coding. Let me know if you need any other help.
 
0
Close
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:


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!
 
0
Close
Remove exit; from your code
 
0
Close
Nope, doesn't work... Tried that :(
 
0
Close
Can you post or email me the whole code?
 
0
Close
AIMing... 10x in advance for help.
 
0
Close
DomainEasy: flexible LTO options. Close more domain deals with financing.

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Filters for activity feeds
Your news feed, Latest activity, and the activity tab on profiles now have filter buttons: All, Posts, Quick replies, and Other. Your...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back