делаю всплывающую форму заказа
Код |
---|
<?CUtil::InitJSCore(array('window'));?>
<script type="text/javascript">
<!--
var Dialog = new BX.CDialog({
title: "Окно заказа",
head: 'Наш график работы. Тел. менеджера',
content: '<form method="POST" style="overflow:hidden;" action="/search/" id="searchform">\
<textarea name="search" style="height: 78px; width: 374px;">Ваши контакты</textarea>\
</form>',
icon: 'head-block',
resizable: true,
draggable: true,
height: '168',
width: '400',
});
Dialog.SetButtons([
{
'title': 'Отправить',
'id': 'action_send',
'name': 'action_send',
'action': ''
},
{
'title': 'Закрыть',
'id': 'cancel',
'name': 'cancel',
'action': function(){
this.parentWindow.Close();
}
}
]);
//-->
</script>
<input type="button" value="Заказать" OnClick="Dialog.Show();" />
|
нужно чтобы форма обрабатывалась на этой же страницу но не пойму как это сделать