9homie Posted July 28, 2008 Share Posted July 28, 2008 Hello. I would like to make a button which I have made: echo "<input type=\"submit\" value=\"Battle\" name=\"battle\">\n"; and I want that button to go to the new page with the file name battlesystem.php I have NO idea how to do this. Thank You in advance 9homie Quote Link to comment https://forums.phpfreaks.com/topic/116978-button-to-a-page-help/ Share on other sites More sharing options...
Nhoj Posted July 28, 2008 Share Posted July 28, 2008 echo "<form method=\"get\" action=\"battlesystem.php\">\n"; echo "<input type=\"submit\" value=\"Battle\">\n"; echo "</form>\n"; Quote Link to comment https://forums.phpfreaks.com/topic/116978-button-to-a-page-help/#findComment-601583 Share on other sites More sharing options...
9homie Posted July 28, 2008 Author Share Posted July 28, 2008 That is my pages code but if you go onto http://pokemonoracle.web44.net/mapcode.php and look at the error code, that is the error and I don't know how to fix it... <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Map Code</title> </head> <body> <?php include("battlesystem.php"); $pokemon = array("Rattata", "Pidgey" ); $chance = rand(1, 15); $pokemon_chance = array_rand($pokemon); if(empty($_GET['start'])){ echo "<a href='".$_SERVER['PHP_SELF']."?start=1'><img src='Maps/Pallet_Town.png' border='0' /></a>"; } elseif ($chance >=1 && $chance <=6 && $pokemon_chance == "Rattata") { echo "<a href='".$_SERVER['PHP_SELF']."?start=1'><img src='Maps/Pallet_Town.png' border='0' /></a>"; /*echo "<img src='Maps/Pallet_Town.png' border='0' />";*/ echo "<br />\n"; echo "<br />\n"; echo "You just found a Rattata"; echo "<br />\n"; echo "<img src=\"/Pokemon_Images/Rattata.jpg\" />\n"; echo "<br />\n"; echo "<br />\n"; echo "<input type=\"submit\" value=\"Capture\" name=\"capture\">\n"; echo "<form method=\"get\" action=\"battlesystem.php\">\n"; echo "<input type=\"submit\" value=\"Battle\">\n"; echo "</form>\n"; } elseif ($chance >=6 && $chance <=12 && $pokemon_chance == "Pidgey") { echo "<a href='".$_SERVER['PHP_SELF']."?start=1'><img src='Maps/Pallet_Town.png' border='0' /></a>"; /*echo "<img src='Maps/Pallet_Town.png' border='0' />";*/ echo "<br />\n"; echo "<br />\n"; echo "You just found a Pidgey"; echo "<br />\n"; echo "<img src=\"/Pokemon_Images/Pidgey.jpg\" />\n"; echo "<br />\n"; echo "<br />\n"; echo "<input type=\"submit\" value=\"Capture\" name=\"capture\">\n"; echo "<form method=\"get\" action=\"battlesystem.php\">\n"; echo "<input type=\"submit\" value=\"Battle\">\n"; echo "</form>\n"; } else { echo "<a href='".$_SERVER['PHP_SELF']."?start=1'><img src='Maps/Pallet_Town.png' border='0' /></a>"; /*echo "<img src='Maps/Pallet_Town.png' border='0' />";*/ echo "<br />\n"; echo "<br />\n"; echo "Sorry, You didn't catch a pokemon! Please click the map to try again!"; } ?> </body> </html> Quote Link to comment https://forums.phpfreaks.com/topic/116978-button-to-a-page-help/#findComment-601594 Share on other sites More sharing options...
9homie Posted July 28, 2008 Author Share Posted July 28, 2008 Anyone know what to do? Quote Link to comment https://forums.phpfreaks.com/topic/116978-button-to-a-page-help/#findComment-601647 Share on other sites More sharing options...
synking Posted July 28, 2008 Share Posted July 28, 2008 what kinda server hosting do you have i think that may be an issue with that. Quote Link to comment https://forums.phpfreaks.com/topic/116978-button-to-a-page-help/#findComment-601699 Share on other sites More sharing options...
9homie Posted July 28, 2008 Author Share Posted July 28, 2008 I am using the hosting on this website (the free hosting) www.000webhost.com Quote Link to comment https://forums.phpfreaks.com/topic/116978-button-to-a-page-help/#findComment-601891 Share on other sites More sharing options...
revraz Posted July 28, 2008 Share Posted July 28, 2008 Post the error instead of the webpage. Quote Link to comment https://forums.phpfreaks.com/topic/116978-button-to-a-page-help/#findComment-601895 Share on other sites More sharing options...
DarkWater Posted July 28, 2008 Share Posted July 28, 2008 It exceeded the memory limit. My advice would be to get a real web host. Quote Link to comment https://forums.phpfreaks.com/topic/116978-button-to-a-page-help/#findComment-601897 Share on other sites More sharing options...
LemonInflux Posted July 28, 2008 Share Posted July 28, 2008 Yeah, your webhost, by the looks of it, isn't good. Quote Link to comment https://forums.phpfreaks.com/topic/116978-button-to-a-page-help/#findComment-601900 Share on other sites More sharing options...
9homie Posted July 28, 2008 Author Share Posted July 28, 2008 Well would it not be REALLY hard to change it round because of all the tables and things, how do I transfer my members? Also can you recommed one? Quote Link to comment https://forums.phpfreaks.com/topic/116978-button-to-a-page-help/#findComment-601927 Share on other sites More sharing options...
DarkWater Posted July 28, 2008 Share Posted July 28, 2008 Get a database dump and transfer the files. That's the easy part. >_> Anyway, I'd recommend BlueHost (very good) and HostGator (also very good). Quote Link to comment https://forums.phpfreaks.com/topic/116978-button-to-a-page-help/#findComment-601930 Share on other sites More sharing options...
9homie Posted July 28, 2008 Author Share Posted July 28, 2008 What do you mean, sorry not the best at these things, so can you put the instructions to do that here please and also is there any web hosting service that has a free web hosting service thing and also it has a paid GOOD one WITH it? That doesn't cose that much? Quote Link to comment https://forums.phpfreaks.com/topic/116978-button-to-a-page-help/#findComment-601949 Share on other sites More sharing options...
DarkWater Posted July 28, 2008 Share Posted July 28, 2008 I don't understand the part about "free" and "paid" on the same web host. You get what you pay for. Get a job then buy web hosting that won't crap out on you all the time like free web hosting does. And if your free web host has cPanel like it says, there's gotta be a place somewhere to make a database dump. Quote Link to comment https://forums.phpfreaks.com/topic/116978-button-to-a-page-help/#findComment-601950 Share on other sites More sharing options...
stricks1984 Posted July 28, 2008 Share Posted July 28, 2008 How much traffic do you plan on getting? If not tons, why not host your own site? That's free, well except for the learning curve... Quote Link to comment https://forums.phpfreaks.com/topic/116978-button-to-a-page-help/#findComment-601953 Share on other sites More sharing options...
DarkWater Posted July 28, 2008 Share Posted July 28, 2008 And the fact that he'll need to not get destroyed by his ISP if they find out. Quote Link to comment https://forums.phpfreaks.com/topic/116978-button-to-a-page-help/#findComment-601954 Share on other sites More sharing options...
9homie Posted July 28, 2008 Author Share Posted July 28, 2008 Traffic = yes, tons. I am only 12. So not the job idea... I mean like on the 000webhost there is a option to take the free web hosting and then when you want you can upgrade it and start paying for the paid one... Also I can't find the database dumb, will it be in the phpmyadmin? Quote Link to comment https://forums.phpfreaks.com/topic/116978-button-to-a-page-help/#findComment-601955 Share on other sites More sharing options...
Jabop Posted July 28, 2008 Share Posted July 28, 2008 www.softlayer.com is all you need Quote Link to comment https://forums.phpfreaks.com/topic/116978-button-to-a-page-help/#findComment-601956 Share on other sites More sharing options...
9homie Posted July 28, 2008 Author Share Posted July 28, 2008 why should I get a new computer or whatever you are trying to tell me to get? Quote Link to comment https://forums.phpfreaks.com/topic/116978-button-to-a-page-help/#findComment-601960 Share on other sites More sharing options...
DarkWater Posted July 28, 2008 Share Posted July 28, 2008 Traffic = yes, tons. I am only 12. So not the job idea... I mean like on the 000webhost there is a option to take the free web hosting and then when you want you can upgrade it and start paying for the paid one... Also I can't find the database dumb, will it be in the phpmyadmin? Then go beg your parents for money? And he's telling you to buy a server. If you are serious about "tons of traffic", you'll need a real server, which can range from like, $150-$650 a month depending on the quality and host. @Jabop: Those prices don't seem too bad for a server. I'm going to read the rest of the site later. Thanks for the link. Quote Link to comment https://forums.phpfreaks.com/topic/116978-button-to-a-page-help/#findComment-601984 Share on other sites More sharing options...
9homie Posted July 29, 2008 Author Share Posted July 29, 2008 What about the server on a iMac computer? That is quite good, I think. Quote Link to comment https://forums.phpfreaks.com/topic/116978-button-to-a-page-help/#findComment-602454 Share on other sites More sharing options...
9homie Posted July 29, 2008 Author Share Posted July 29, 2008 Do you think that that would be a good enough server? Quote Link to comment https://forums.phpfreaks.com/topic/116978-button-to-a-page-help/#findComment-602998 Share on other sites More sharing options...
revraz Posted July 29, 2008 Share Posted July 29, 2008 No Quote Link to comment https://forums.phpfreaks.com/topic/116978-button-to-a-page-help/#findComment-603002 Share on other sites More sharing options...
Jabop Posted July 29, 2008 Share Posted July 29, 2008 DarkWater: The prices are amazing, actually I got my server when they were running a deal, the specs are as follows: Intel Xeon 3220-Quad Core @ 2.4GHz Hynix 1GB DDR2 x 4 Western Digital WD Caviar RE 16 WD2500YS x 2 1000Mbps uplink for $199 a month. It's a bit much for what I realllly need it for, but I like the power. Quote Link to comment https://forums.phpfreaks.com/topic/116978-button-to-a-page-help/#findComment-603011 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.