freddyw Posted December 12, 2009 Share Posted December 12, 2009 Okay in my second form the submit is above the form and doesnt work. Also i have poitioned my iframe on the right hoping the 2 forms would stay in there place but they have moved down the screen below the iframe. I want the submit button under the form (and working). I also want the 2 forms moving up the screen. any help please? <html> <head><Title>Tweet to the world your thoughts on the news</title> </head> <iframe src="http://www.google.com/uds/modules/elements/newsshow/iframe.html?format=300x250" frameborder="0" width="300" height="250" marginwidth="0" marginheight="0"> </iframe> <P ALIGN="right"><iframe name="results" src="getkey.php" style='width: 500px; height: 1000px; border: 1px solid #000000; align: right;' name='test'></iframe></P> <div id="addtweet"> <table width='100%' height='100%'> <form action="tweet.php" method ="post"> <table> <tr><td align=right> <tr><td> <tr><td>Twitter Username:</td><td><input type="text" name="username" /> </td></tr> <tr><td>Twitter Password:</td><td><input type="password" name="password" /> </td></tr> <tr><td>Tweet:</td><td><input type="text" name="tweet" /> </td></tr> <tr><td align=right> <INPUT TYPE="button" value="add tweet"/> </td></tr> </form> </table> </div> <br><br> <div id="search"> <table width='100%' height='100%'> <form action="getkey.php" method ="post" target="results"> <table> <tr><td> <tr><td>Search Twitter for...:</td><td><input type="text" name="key" /> </td></tr> <INPUT TYPE="button" value="Search" /> </td></tr> </form> </table> </div> </html> Quote Link to comment Share on other sites More sharing options...
vinpkl Posted December 13, 2009 Share Posted December 13, 2009 you have 4 opening <table> tags but 2 closing </table> tags you have given 2 names to iframe. <iframe name="results" src="getkey.php" style='width: 500px; height: 1000px; border: 1px solid #000000; align: right;' name='test'></iframe> correct them. vineet Quote Link to comment Share on other sites More sharing options...
The Eagle Posted December 14, 2009 Share Posted December 14, 2009 Also note, fix up your coding, it's a bit messy. For instance: <td align=right>... correction/cleaner would be <td align="right">. Quote Link to comment Share on other sites More sharing options...
freddyw Posted December 15, 2009 Author Share Posted December 15, 2009 Thanks. Ive cleaned it up. All looking good. The form is no longer working. I can hit enter, and the form works. But the submit button does nothing. My form code must be right for the form to work (when enter is pressed). So i guess my error is in the input type = submit section of the code. The form is connecting to a php script (which is correctly coded), the php script grabs data from twitter and puts it in an iframe on the html page. But why wont the submit button work? <form action="getkey.php" method ="post" target="results"> Search Twitter for...<input type="text" name="key"> <br> <input type="button" value="Search"> </form> Quote Link to comment Share on other sites More sharing options...
haku Posted December 16, 2009 Share Posted December 16, 2009 Change the input from type 'button' to type 'submit' Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.