Carter McArthur Posted May 19, 2006 Share Posted May 19, 2006 ?phpif (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 McArthurCarter McArthur is online now Edit/Delete Message Quote Link to comment https://forums.phpfreaks.com/topic/10024-carters-test-webpage/ Share on other sites More sharing options...
wildteen88 Posted May 19, 2006 Share Posted May 19, 2006 Umm, How on earth are we supposed to know how to help you! You havn't told us what you are trying to do and what your current problem is.So if you could reply with more infomation we'll be able to help you lot more. Quote Link to comment https://forums.phpfreaks.com/topic/10024-carters-test-webpage/#findComment-37236 Share on other sites More sharing options...
Carter McArthur Posted July 6, 2006 Author Share Posted July 6, 2006 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 Quote Link to comment https://forums.phpfreaks.com/topic/10024-carters-test-webpage/#findComment-54087 Share on other sites More sharing options...
Carter McArthur Posted July 6, 2006 Author Share Posted July 6, 2006 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.QuoteC:\PHP>php -tPHP Warning: PHP Startup: dba: Unable to initialize moduleModule compiled with module API=20050922, debug=0, thread-safety=1PHP compiled with module API=20060613, debug=0, thread-safety=1These options need to matchin Unknown on line 0PHP Warning: PHP Startup: fdf: Unable to initialize moduleModule compiled with module API=20050922, debug=0, thread-safety=1PHP compiled with module API=20060613, debug=0, thread-safety=1These options need to matchin Unknown on line 0PHP Warning: PHP Startup: dbg: Unable to initialize moduleModule compiled with module API=20050922, debug=0, thread-safety=1PHP compiled with module API=20060613, debug=0, thread-safety=1These options need to matchin Unknown on line 0I hope that someone can help me solve this situation.CarterCarter McArthur Quote Link to comment https://forums.phpfreaks.com/topic/10024-carters-test-webpage/#findComment-54088 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.