Hello all. I am a little new to PHP, so bear with me. I have a window with two frames. The upper is for navigation, and the main is where I want all the forms to show. Well anyway, I enter data into input.html and when I hit submit, the data goes to process_form.php. Well, the page shows, but there is no info. I know that it worked without the frames. Any suggestions?
Thanks in advance,
Parallon
Moving values between frames...
Moderator: General Moderators
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
Ermmm... you can pass javascript variables between frames but if you needs to pass PHP variables you need to use $_GET or $_SESSION.
Have a look on http://www.php.net for $_GET
Have a look on http://www.php.net for $_GET
- n00b Saibot
- DevNet Resident
- Posts: 1452
- Joined: Fri Dec 24, 2004 2:59 am
- Location: Lucknow, UP, India
- Contact:
Here is the code...
kb_input.htmlcheck/post your code so that we may analyse it before giving any suggestions.
Code: Select all
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>KB_Input</title>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
a:link {
text-decoration: none;
}
a:visited {
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
a:active {
text-decoration: none;
}
.style1 {font-size: xx-large}
-->
</style>
</head>
<body >
<p align="center" class="style1">Knowledge Base Input Form </p>
<table width="800" border="1">
<tr>
<td valign="top"><form action="process_form.php" method="post" name="input" id="input" target="mainFrame">
<p>Problem<br>
<input name="problem1" type="text" id="problem1" size="30" maxlength="150">
</p>
<p> Solution<br>
<textarea name="solution1" cols="75" rows="3" wrap="VIRTUAL" id="solution1"></textarea>
</p>
<p>Problem<br>
<input name="problem2" type="text" id="problem2" size="30" maxlength="150">
</p>
<p>Solution<br>
<textarea name="solution2" cols="75" rows="3" wrap="VIRTUAL" id="solution2"></textarea>
</p>
<p>Problem<br>
<input name="problem3" type="text" id="problem3" size="30" maxlength="150">
</p>
<p>Solution<br>
<textarea name="solution3" cols="75" rows="3" wrap="VIRTUAL" id="solution3"></textarea>
</p>
<p>Problem<br>
<input name="problem4" type="text" id="problem4" size="30" maxlength="150">
</p>
<p align="left">Solution<br>
<textarea name="solution4" cols="75" rows="3" wrap="VIRTUAL" id="solution4"></textarea>
<br>
<br>
<input name="Submit" type="submit" value="Submit">
</p>
</form>
</td>
</tr>
</table>
</body>
</html>Code: Select all
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
</head>
<body>
<table width="600" border="1">
<tr>
<td><?PHP
print "Your first problem is <B>$problem1</B><BR>";
print "and your solution is <BR>\n";
print "<B>$solution1<B><BR>";
?></td>
<td> </td>
</tr>
<tr>
<td width="300"> <?PHP
print "$problem1";
?> </td>
<td width="300"><?PHP
print "$solution1";
?> </td>
</tr>
<tr>
<td><?PHP
print "$problem2";
?> </td>
<td><?PHP
print "$solution2";
?> </td>
</tr>
<tr>
<td><?PHP
print "$problem3";
?> </td>
<td><?PHP
print "$solution3";
?> </td>
</tr>
<tr>
<td><?PHP
print "$problem4";
?> </td>
<td><?PHP
print "$solution4";
?> </td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
</table>
<p> </p>
</body>
</html>Thanks,
Parallon