FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Form





DanielXP
Why don't this work?

Code:
case "step1":
//Ask user for database info
echo "<form method='POST' action='install.php?action=step2'>";
echo "<table width='353' border='1'>
  <tr>
    <td width='127'>Database Username: </td>
    <td width='210'>
        <input type='text' name='dbuser' size='35'>
</td>
  </tr>
  <tr>
    <td>Database Password:</td>
    <td><input type='text' name='dbpass' size='35'></td>
  </tr>
  <tr>
    <td>Database Name: </td>
    <td><input type='text' name='dbname' size='35'></td>
  </tr>
  <tr>
    <td>Host:</td>
    <td><input type='text' name='dbhost' size='35' value='localhost'></td>
  </tr>
</table>";
echo "<input type='button' value='Next Step' name='Next'>";
echo "</form>";
break;
mathiaus
What do you mean it doesnt work? It doesn't show at all? If this is the case its probably because $action (assuming thats what your switching) doesn't equal step1.

Please be more specific when asking for help
DanielXP
woops sorry

it loads and all that but when you click the button "Next Step" it does not load the new page (post the data)
DanielXP
- Fixed -

type='button'

change to

type='submit'
Related topics
PHP: Feedback form issues.. help =P
form mail for php
A Simple Form Mail in PHP
form button to open a custom sized new window
html form help needed
PHP Form Generator
Form Generator
Form Sending and Something else
here is a neat little form checker i made
form submit
Looking for easy FormMail Script
form to email service: 20 FRIH$
Remember form Data HTML
Form validation
This topic is locked: you cannot edit posts or make replies.    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.