Jump to content

Recommended Posts

I'm learning to do php forms, and I'm testing in this page: [a href=\"http://infocenter.awardspace.com/submit.php\" target=\"_blank\"]http://infocenter.awardspace.com/submit.php[/a] , it should return the value written on the "Game Name" textbox when clicking OK but it doesn't.


submit.php:

[code]<td width="111"><strong>Game Name:* </strong></td>
    <td width="319"><form id="form3" name="form3" method="post" action="">
      <label>
        </label>
      <input name="textfield3" type="text" size="53" maxlength="45" />
    </form>    </td>

(...)

<form id="form6" name="form6" method="post" action="insert.php">
  <label></label>
  <div align="center">
    <p>
      <input type="submit" name="Submit" value="OK" />
    </p>
    <p><a href="index.php">Back</a></p>
  </div>
</form>
[/code]

insert.php:

[code]<?php    echo $_POST['textfield3']; ?>[/code]
Link to comment
https://forums.phpfreaks.com/topic/5815-my-submit-form-doesnt-work/
Share on other sites

you have 2 forms with on submit try this

[code]

<td width="111"><strong>Game Name:* </strong></td>
    <td width="319"><form id="form3" name="form3" method="post" action="insert.php">
      <label>
        </label>
      <input name="textfield3" type="text" size="53" maxlength="45" />
    </form>    </td>

(...)


  <label></label>
  <div align="center">
    <p>
      <input type="submit" name="Submit" value="OK" />
    </p>
    <p><a href="index.php">Back</a></p>
  </div>
</form>[/code]
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.