Jump to content

Search the Community

Showing results for tags 'post $_Post'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • W3Schools
    • General
    • Suggestions
    • Critiques
  • HTML Forums
    • HTML/XHTML
    • CSS
  • Browser Scripting
    • JavaScript
    • VBScript
  • Server Scripting
    • Web Servers
    • Version Control
    • SQL
    • ASP
    • PHP
    • .NET
    • ColdFusion
    • Java/JSP/J2EE
    • CGI
  • XML Forums
    • XML
    • XSLT/XSL-FO
    • Schema
    • Web Services
  • Multimedia
    • Multimedia
    • FLASH

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Languages

Found 1 result

  1. Hello. I've created a small form with 6 text boxes and 2 select boxes/fields. The problem I'm facing is that I'm unable to post from the form to another php file. In the html form, I've written:- <form action="newmember.php" method="POST"> <table> <tr> <td>Full Name / Business Name:</td> <td><input name="txtAccountName" size="20" maxlength="50"></td> <td></td> </tr> <tr> <td>Username:</td> <td><input name="txtUsername" size="20" maxlength="50"></td> <td></td> </tr> <tr> <td>EMail:</td> <td><input name="txtEmail" size="20" maxlength="100"></td> <td></td> </tr> <tr> <td>Password:</td> <td><input name="txtPassword" type="password" size="20" maxlength="20"></td> <td></td> </tr> <tr> <td>Confirm Password:</td> <td><input name="txtConfirm_Password" type="password" size="20"></td> <td></td> </tr> <tr> <td>DOB:</td> <td><input name="txtdob" size="12" value="dd/mm/yyyy" maxlength="12"></td> <td></td> </tr> <tr> <td>Membership Type:</td> <td><select name="comMembership" size="1"> <option selected="selected">Individual</option> <option>Business</option> </select> </td> <td></td> </tr> <tr><td></td></tr> <tr> <td>You Agree to our<br> Terms and Conditions,<br> and Privacy/Cookies Notice.</td> <td><select name="txtAgree" size="1"> <option selected="selected">N</option> <option>Y</option> </select> </td> </tr> </table> <input name="submit" type="image" src="/mainimages/submit.jpg" style="border: 0" alt=""> </form> And in the newmember.php file I've so far written:- <?php // Check Entries $New_Agree = $_POST["txtAgree"]; $New_Fullname = $_POST["txtAccountName"]; $New_Username = $_POST["txtUsername"]; $New_EMail = $_POST["txtEmail"]; $New_Password = $_POST["txtPassword"]; $New_Confirm_Password = $_POST["txtConfirm_Password"]; $New_Dob = $_POST["txtdob"]; $New_Membership = $_POST["comMembership"]; ?> I'd just like to ask:- 1. Dose my coding look correct, as I've not been faced with posting problem before? 2. Should I place the $_POST in html instead of php? 3. Oh yes, I've found that the DOB is posted ok, however I've placed value="dd/mm/yyyy" as a temporary measure only. I'd be grateful for any ideas or guidance/help. Thank You very much.
×
×
  • Create New...