Dealing with html forms [closed]

Use the following code: <form action=”action_page.php” method=”post”> First name:<br> <input type=”text” name=”firstname” value=””> <br> Last name:<br> <input type=”text” name=”lastname” value=””> <br> <input type=”submit” value=”Submit”> </form> and in file “action_page.php” Use the following code: $firstname = $_POST[“firstname”]; $lastname = $_POST[“lastname”]; You can read the information with the following code: <pre> <?php print_r($_POST); ؟> </pre> or var_dump($_POST);

Align form elements with css

Currently you have: #fscf_form3 div { margin-bottom: 6px; } If you increase it let’s say to 11 you can see that the box goes to the right and properly aligns. Basically using the proper selectors you need to increase either the margin-top of the div or the margin-bottom of the div above it.

Ajax contact form returnig 0

What makes you think this will ever be true? if (isset($_POST[‘submit’])){ In function dav_form_validation the die() is in 2 conditionals. It should be called regardless of whether the conditionals are satisfied. Add 2 else clauses and return error messages. Usually a response of ‘0’, means the ajax hooks are not being found. But your code … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)