zwebm Posted June 1, 2006 Share Posted June 1, 2006 Im very new at PHP and have created very simple scripts. is it possoble to add more variables to arrays from a HTML form? i have a simple array like the following...$game_title = array("Airfox", "Adrenalin Challenge", "War Bears", "Alpha Bravo Charlie", "A Blast", "Adventures of Bibo II", "Air Hockey", "ALIAS", "ALIAS 2");how would i have an HTML form add anothor variable to that array? Link to comment https://forums.phpfreaks.com/topic/10916-array-help/ Share on other sites More sharing options...
samshel Posted June 1, 2006 Share Posted June 1, 2006 You can use:$game_title[] = $_POST['new_element'];where the new_element is the input submitted....However if you need to populate the array over several submits...you need to store the original array as arrays cannot be stored across pages... Link to comment https://forums.phpfreaks.com/topic/10916-array-help/#findComment-40802 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.