{ "key_pair_value_system": true, "answer_rating_count": "", "question_feedback_html": { "html_star": "", "html_star_feedback": "" }, "answer_average_rating_value": "", "answer_date_js": "2024-09-10T05:04:01-04:00", "answer_date": "2024-09-10 05:04:01", "is_docs_available": null, "is_excel_available": null, "is_pdf_available": null, "count_file_available": 0, "main_page": "student_question_view", "question_id": "9996208", "url": "\/study-help\/questions\/1-the-php-file-alrightphp-movie-seat-booking-pick-a-9996208", "question_creation_date_js": "2024-09-10T05:04:01-04:00", "question_creation_date": "Sep 10, 2024 05:04 AM", "meta_title": "[Solved] 1. the php file (alright.php) Movie Seat | SolutionInn", "meta_description": "Answer of - 1. the php file (alright.php) Movie Seat Booking Pick a movie: Avengers: Endgame (RM10.5) Frozen (RM12) N\/A Selected O | SolutionInn", "meta_keywords": "1,php,file,alrightphp,movie,seat,booking,pick,avengers,endgame,rm10.5,frozen", "question_title_h1": "1. the php file (alright.php) Movie Seat Booking Pick a movie: Avengers: Endgame (RM10.5) Frozen (RM12) N\/A Selected Occupied A1 A2 A3 A4 B1 B2", "question_title": "1. the php file (alright.php) Movie Seat Booking Pick a movie: Avengers:", "question_title_for_js_snippet": "1 the php file (alright php) Movie Seat Booking Pick a movie Avengers Endgame (RM10 5) Frozen (RM12) N A Selected Occupied A1 A2 A3 A4 B1 B2 B3 B4 C1 C2 C3 C4 D1 D2 D3 D4 E1 E2 E3 E4 E5 E6 F1 F2 F3 F4 G1 G2 G3 G4 H1 H2 H3 H4 You have selected 0 seats Adult (age 20 70) Your order total is RM Confirm 2 PHP file (next php) Checkout CART Price this part is the one i meant i want to fetch 'harga' from alright php to here thanksin advance Food Drinks RM5 Total Seat RM8 Seat D4 RM2 Total RM30 Payment Accepted Cards Name on Card Credit card number Expire Date CVV Checkout Previous 3 java (alright js) const container document querySelector(' container') const seats document querySelectorAll(' row seat not( occupied)') const count document getElementById('count') const duduk document querySelectorAll(' row seat id') const movieSelect document getElementById('movie') populateUI() let ticketPrice movieSelect value Save selected movie index and price function setMovieData(movieIndex, moviePrice) localStorage setItem('selectedMovieIndex', movieIndex) localStorage setItem('selectedMoviePrice', moviePrice) Update total and count function updateSelectedCount() const selectedSeats document querySelectorAll(' row seat selected') const seatsIndex selectedSeats map(seat seats indexOf(seat)) localStorage setItem('selectedSeats', JSON stringify(seatsIndex)) const selectedSeatsCount selectedSeats length count innerText selectedSeatsCount total innerText selectedSeatsCount ticketPrice setMovieData(movieSelect selectedIndex, movieSelect value) Get data from localstorage and populate UI function populateUI() const selectedSeats JSON parse(localStorage getItem('selectedSeats')) if (selectedSeats null selectedSeats length 0) seats forEach((seat, index) if (selectedSeats indexOf(index) 1) seat classList add('selected') ) const selectedMovieIndex localStorage getItem('selectedMovieIndex') if (selectedMovieIndex null) movieSelect selectedIndex selectedMovieIndex Movie select event movieSelect addEventListener('change', e ticketPrice e target value setMovieData(e target selectedIndex, e target value) updateSelectedCount() ) Seat click event container addEventListener('click', e if ( e target classList contains('seat') e target classList contains('occupied') ) e target classList toggle('selected') updateSelectedCount() ) Initial count and total set updateSelectedCount() my problem is, i cannot fetch data from alright php to next php how to solve this i want fetch harga (which mean total) in alright php(the 1st code) to next php(the2nd code) ", "question_description": "
1. the php file (alright.php)<\/strong> <\/p> <\/p> <\/p> <\/p> <\/p> <\/p> <\/p> <\/head><\/p> <\/p>