Text input box.

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
icemanjc
Forum Newbie
Posts: 2
Joined: Thu Oct 05, 2006 4:51 pm

Text input box.

Post by icemanjc »

I need to know how to make a text input box in php, since I'm making a upload script, its all done I just need that last part.
I want it to be kinda like imageshack.us so it shows you your url in a text box. This is what I want in the box.

Code: Select all

print "http:/domain.com/upload/";

    if (isset($content))
      echo  $content;{
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

:roll: that's not php... it's html...

Code: Select all

<input type="text" name="input_box" value="http:/domain.com/upload/">
If you need to upload files... that should look like this:

Code: Select all

<form method='post' enctype='multipart/form-data' action='#'>
File to upload: <input type="file" name="file"><br>
<input type="submit" value="Submit">
</form>
icemanjc
Forum Newbie
Posts: 2
Joined: Thu Oct 05, 2006 4:51 pm

Post by icemanjc »

this is what I have so far.

Code: Select all

echo '<input type="text" name="input_box" value="http:/domain.com/upload/">';
I have that, so now i need to get it to show the content that would go after upload/
Post Reply