PDA

View Full Version : [HELP] Open Button



Lol
03-19-2013, 04:33 PM
/Off-topic
First to start off with, this section is dead! Come one people bring this alive!!!

/On-topic
I was wondering if anyone know how to make an 'Open Button' like
C#


OpenFileDialog ofd = new OpenFileDialog();
if (ofd.ShowDialog() == DialogResult.OK)
{
textBox1.Text = ofd.FileName;
}


VB


Dim ofd As New OpenFileDialog
If ofd.ShowDialog = DialogResult.OK Then
textBox1.Text = ofd.FileName
End If


Yes I'm still new to php.

XMBDave
03-19-2013, 04:53 PM
/Off-topic
First to start off with, this section is dead! Come one people bring this alive!!!

/On-topic
I was wondering if anyone know how to make an 'Open Button' like
C#


OpenFileDialog ofd = new OpenFileDialog();
if (ofd.ShowDialog() == DialogResult.OK)
{
textBox1.Text = ofd.FileName;
}


VB


Dim ofd As New OpenFileDialog
If ofd.ShowDialog = DialogResult.OK Then
textBox1.Text = ofd.FileName
End If


Yes I'm still new to php.

PHP is server sided. This is not possible on it's own.

Lol
03-19-2013, 05:08 PM
PHP is server sided. This is not possible on it's own.

There is a way to do it...

godzcheater
03-19-2013, 05:59 PM
There is a way to do it...
Get a client filepath or edit a stream? No.
You could upload the file, edit it and then let the user download it again.
See This (http://www.w3schools.com/php/php_file_upload.asp) for uploading.

LordHaxXxoR
07-01-2013, 09:09 AM
Ajax/JS is the solution

Sephiroth
07-01-2013, 11:00 AM
http://stackoverflow.com/questions/16696617/open-file-dialog-and-submit-image-by-clicking-an-image

GeneralSteel
07-01-2013, 11:02 AM
http://stackoverflow.com/questions/16696617/open-file-dialog-and-submit-image-by-clicking-an-image

OMG now wonder my save editor didnt work thank you