Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 94346

Re: Why does PHP code i wrote in Netbeans not work in Dreamweaver?

$
0
0

You only want the php code to execute once the user has pressed the submit(Upload) button.

 

Put an 'if statement' around the php code: (see in red below)

 

 

if (isset($_POST['submit'])) {

 

    $name = @$_FILES["myfile"] ["name"];

 

 

 

echo '</tr> <table/>';

}

 

Then add the name="submit" to the button:

<input type="submit" name="submit" value="Upload"/>


Viewing all articles
Browse latest Browse all 94346

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>