View Full Version : is it possible to have insertion from another page?
02-16-2006, 02:44 AM
can anybody help me about this?..
i have a page named "page1"
then i've inserted data's
and i also have "page2" and the submit button is located here
is it possible to have insertion from other page?..
You can do the following thing in page 1 (for example):
<?php include("page2.php"); ?>
02-16-2006, 12:19 PM
To prevent a wild goose chase, you'll need to clarify yourself a bit more:
then i've inserted data's Where did you insert data? How? In what?
the submit button is located here I guess "page2" contains a form, then, and you want to somehow process the form's data; do you want to store it? Display it on another page?
02-21-2006, 08:46 AM
yap!! absolutely.. that's what i mean...
02-21-2006, 02:07 PM
<form name="form1" method="post" action="page2.php">
<table width="200" border="1" cellspacing="0" cellpadding="2">
<td><input name="txt_name" type="text" id="txt_name"></td>
<td><textarea name="txt_comments" id="txt_comments"></textarea></td>
<td colspan="2"><input type="submit" name="Submit" value="Submit"></td>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
echo 'Thanks for your comments!<br>';
echo 'Name: ' . $_POST['txt_name'];
echo '<br>Comments: ' . $_POST['txt_comments'];
That is a really basic example. You would probably want to put in some validation and error checking.
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.