У меня есть код php здесь, и я хотел бы создать «назад» href, чтобы вернуть меня туда, где я был раньше. Вот что у меня есть:код для кнопки назад
<input type="submit" <a href="#" onclick="history.back();">"Back"</a>
<html>
<head></head>
<body>
<?php
// get form selection
$day = $_GET['day'];
// check value and select appropriate item
if ($day == 1) {
$special = 'Chicken in oyster sauce';
}
elseif ($day == 2) {
$special = 'French onion soup';
}
elseif ($day == 3) {
$special = 'Pork chops with mashed potatoes and green salad';
}
else {
$special = 'Fish and chips';
}
?>
<h2>Today's special is:</h2>
<?php echo $special; ?>
<input type="submit" <a href="#" onclick="history.back();">"Back"</a>
</body>
</html>
Пожалуйста, помогите. Заранее спасибо!
И ваша проблема в том, что именно? –
Возможно, вложенный внутри тега . (Которой должна быть кнопка типа, а не тип submit). Но Дэйв уже отправил ответ. – EboMike