Fenix_61 (27.11.2011/10:19)А http:// кто будет добавлять?
Вот мой код -echo '<input type="button" value="На главную" src="strahi.tk" />';
Fenix_61 (27.11.2011/10:19)А http:// кто будет добавлять?
Вот мой код -echo '<input type="button" value="На главную" src="strahi.tk" />';
REALball (27.11.2011/10:21)Млин !
А http:// кто будет добавлять?
Вот так -
echo '<input type="button" value="На главную" src="http://strahi.tk" />'; ? Fenix_61 (27.11.2011/10:37)да.
Вот так -?echo '<input type="button" value="На главную" src="http://strahi.tk" />';
REALball (27.11.2011/10:38)Все равно только обновляет ! Вот код всей странички -
да.
<?php
define ('_IN_JOHNCMS', 1);
$textl = 'Кнопка';
$rootpath = '../';
require_once ('../incfiles/core.php');
require_once ('../incfiles/head.php');
echo '<input type="button" value="На главную" src="http://strahi.tk"/>';
require_once ('../incfiles/end.php');
?> ! Fenix_61 (27.11.2011/10:54)
Все равно только обновляет ! Вот код всей странички - <?php
define ('_IN_JOHNCMS', 1);
$textl = 'Кнопка';
$rootpath = '../';
require_once ('../incfiles/core.php');
require_once ('../incfiles/head
define ('_IN_JOHNCMS', 1);
$textl = 'Кнопка';
$rootpath = '../';
require_once ('../incfiles/core.php');
require_once ('../incfiles/head.php');
echo '<input type="button" value="На главную" src="../index.php"/>';
require_once ('../incfiles/end.php');Вообщем нашел там вот код -
echo '<form action="адрес страницы" target="_blank" method="get"><button type="submit">Текст на кнопке</button></form>'; ! Fenix_61 (27.11.2011/11:02)чет я ниасилил... вы чо хотите то?
Вообщем нашел там вот код -!echo '<form action="адрес страницы" target="_blank" method="get"><button type="submit">Текст на кнопке</button></form>';
Задача.
В базе данных записан полноценный php код.
И так же в базе есть обычный текст.
Как вывести с базы или текст или php код но чтоб он исполнился?
localhost, Может так:
eval($res['php']);
Хотя хз...