php submit button display text file

Okay, I feel really really stupid now… I solved it ! Sorry it took so long…

So, I forgot to explain to you and somehow missed this myself.
When you use PHP for pulling variables using $_POST or $_GET, it uses the “name=” format from the
HTML page. But, when you use Javascript or JQuery, it uses the 'id=" format. So, I screwed up.

The new JS script code is:
[php]

[/php]
But, you also have to change the select clause in the HTML to:
[php]

[/php]
The “id=” was in the DIV, but, missing from the “SELECT”, so I missed it…
That will FINALLY fix ya up… Oh, and you can take out the ALERT if it does work correctly!

Excellent that works. I appreciate all the help. I’m sure I’ll have some more questions as I move forward. Thanks again :slight_smile: I can sleep now.

Me too! That was a crazy mistake on my side. Sorry for the delays. But, the rest works nicely and it is a cool process. Catch you in another thread on your next project sections… Was fun!

Sponsor our Newsletter | Privacy Policy | Terms of Service