Unstoppable Domains — AI Assistant

PHP + html... HELP!

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
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
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
•••
Wow, I can't believe it works... I tried exact same thing but it didn't o_0
Thanks, reputation updated.
 
0
•••
Thanks, glad it worked. Good luck with the rest of your coding. Let me know if you need any other help.
 
0
•••
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
•••
Remove exit; from your code
 
0
•••
Nope, doesn't work... Tried that :(
 
0
•••
Can you post or email me the whole code?
 
0
•••
AIMing... 10x in advance for help.
 
0
•••
Dynadot — .com TransferDynadot — .com Transfer
CatchedCatched

We're social

Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
DomainEasy — Live Options
DomDB
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back