Page 1 of 1

Text input box.

Posted: Thu Oct 05, 2006 4:55 pm
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;{

Posted: Thu Oct 05, 2006 5:06 pm
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>

Posted: Thu Oct 05, 2006 6:18 pm
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/