Jump to content

how to get info frm the page to be inserted into ms sql database?


poqoz-87

Recommended Posts

i has this idea in mind but it cant seem to work. i m using ms sql database, by the way:)

 

this is the scenario:

the user will have to fill in the membership form. when they click onto the submit button in the membership form, the information-that the user key in, will be displayed in the next page. this is the code that i am using to display the info-that the user key in to be display onto the next page

 

<form action="action.php" method="get">

<p>Your name: <input type="text" name="name" /></p>

<p>your age: <input type="text" name="age" /></p>

<p><input type="submit" /></p>

 

Hi <?php echo htmlspecialchars($_GET['name']); ?>.

You are <?php echo (int)$_GET['age']; ?> years old

 

and this is the thing that until now, i finding difficulty with. in the action.php page, the user will then have to click onto the submit button in order for their information to be inserted in the ms sql database.

 

can someone help me as in, how am i suppposed to get the info-that the user key in from the action.php page,to be inserted in the ms sql database?

 

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.