Jump to content

Carter's Test Webpage


Recommended Posts

?php
if (isset($_GET['yesno'])) {
$yesno = $_GET['yesno'];
foreach ($yesno as $value)
{
echo " The yesno is: $value<br>\";

}
if($yesno == "1") {
header('Location:./cartermcarthur.tripod.com/LWay1.html');
// exit;
}
if($yesno == "2") {
header('Location:./cartermcarthur.tripod.com/LWay2.html');
// exit;
}
if($yesno == "3") {
header('Location:./cartermcarthur.tripod.com/LWay3.html');
// exit;
}
}
?>

<html>
<head>
<title>Carter's Home Page</title>
</head>
<body>
<form action="" method="use_GET">
<table align=center>
<! First Table Row >
<tr>
<td align=center>
<h1>Carter's Home Page</h1>
</td>
</tr>

<! Second Table Row >
<tr>
<td align=center>
<h2>Links to Carter's Test Pages</h2>
<p>
<select name='yesno'>
<option value='1'>First Page</option>
<option value='2'>Second Page</option>
<option value='3'>Third Page</option>
<option value='4'>Fourth Page</option>
</select>
<p><input type="submit" value="Submit Info">
</td>
</tr>
</table>
</html>

My Name is ironfoot, I'm also new at php. I'd very much appreciatate if someone would help me with this project. I have a website and this code will me to select different pages, but i'm stuck.

Well thanx to anyone who can lead me on the right path.


--------------------------------------------------------------------------------
Carter McArthur
Carter McArthur is online now Edit/Delete Message
Link to comment
https://forums.phpfreaks.com/topic/10024-carters-test-webpage/
Share on other sites

  • 1 month later...
I; sorry for putting something here that has not been closed.
I will do better in putting things that we both can resolve. I was new at this and still is, but I have a better understanding of what has to be done now. I do have another problem that need to be addressed.

carter
Link to comment
https://forums.phpfreaks.com/topic/10024-carters-test-webpage/#findComment-54087
Share on other sites

I had a problem with my php5 installation so I dumped it's files. The reason was because I could not get the code to process correctly. When html code was parsed, it would respond,but when php parsed it would not read the $_post info.
Now since I reinstalled the php after a clean install.
I get this response from my command prompt.

Quote

C:\PHP>php -t
PHP Warning: PHP Startup: dba: Unable to initialize module
Module compiled with module API=20050922, debug=0, thread-safety=1
PHP compiled with module API=20060613, debug=0, thread-safety=1
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: fdf: Unable to initialize module
Module compiled with module API=20050922, debug=0, thread-safety=1
PHP compiled with module API=20060613, debug=0, thread-safety=1
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: dbg: Unable to initialize module
Module compiled with module API=20050922, debug=0, thread-safety=1
PHP compiled with module API=20060613, debug=0, thread-safety=1
These options need to match
in Unknown on line 0


I hope that someone can help me solve this situation.
Carter

Carter McArthur
Link to comment
https://forums.phpfreaks.com/topic/10024-carters-test-webpage/#findComment-54088
Share on other sites

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.