Jump to content

Why is this happenning


freddyw

Recommended Posts

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>

Link to comment
https://forums.phpfreaks.com/topic/184931-why-is-this-happenning/
Share on other sites

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?  :shrug:

 

    <form action="getkey.php" method ="post" target="results">

                Search Twitter for...<input type="text" name="key">
                <br>
                <input type="button" value="Search">
            </form>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.