Hey y'all, i need some help with that one example that deals with Inserting data into the DAtabase. (the one with isset() and where the form reloads using $PHP_SELF). i copied it word for word on my machine but cannot get it to work. everytime i click the 'add a joke' link, it displays the same page and doesnt show the submission form. all the previous examples work fine, and obviously i dont wanna move on until i get this one to work too!
below is the code where it is messing up...taken exactly from Kevins book (replaced joke with song) the whole idea here is to show all the songs in the database and then the user being able to insert one of their own by clicking the "add a song" link(echo("<P><a href='$PHP_SELF?addsong=1'> Add a Song!</a></P>")
this section of code is SUPPOSED to bring up the submission form but it doesnt.
//if the user wants to add a song
<FORM ACTION="<?php echo($PHP_SELF); ?>" METHOD=POST>
<p> Type your song name here:
<TEXTAREA NAME="songnm" ROWS=10 COLS=20 WRAP>
<INPUT TYPE=SUBMIT NAME="submitsong" VALUE="SUBMIT">