Доступ к значению переменных JavaScript в php для хранения в mysql

Просто я пытаюсь получить доступ к переменной в javascript внутри php при работе с elrte, bleow - это мой файл index.php



  

One textarea with elRTE and file upload plus one text field with elFinder









 





        // elRTE with elFinder on a textarea
        $().ready(function() {
            var opts = {
                cssClass : 'el-rte',
                lang     : 'en',  // Set your language
                allowSource : 1,
                height   : 450,
                toolbar  : 'maxi',   // 'tiny', 'compact', 'normal', 'complete', 'maxi', or 'custom' (see advanced documentation for 'custom')
                cssfiles : ['css/elrte-inner.css'],
                fmAllow  : 1,
                fmOpen : function(callback) {
                    $('').elfinder({
                        url : 'connectors/php/connector.php',
                        places : '',
                        lang : 'en',    // Set your language
                        dialog : { width : 900, modal : true, title : 'Files' }, // Open in dialog window
                        closeOnEditorCallback : true, // Close after file select
                        editorCallback : callback     // Pass callback to file manager
                    })
                }

            }
            $('#editor').elrte(opts);
        // Text field with elFinder
            var opt = {
                url : 'connectors/php/connector.php',
                places : '',
                lang : 'en',
                editorCallback : function(url) {document.getElementById('field').value=url;},       // The id of the field we want elfinder to return a value to.
                closeOnEditorCallback : true,
                docked : false,
                dialog : { title : 'File Manager', height: 500 },
            }

            $('#open').click(function() {                   // The id of the button that opens elfinder
                $('#finder').elfinder(opt)                  // The id of the div that elfinder will open in
                $('#finder').elfinder($(this).attr('id'));  // it also has to be entered here.
            })

        $('#btnsub').click(function() {
        var content = $('#editor').elrte('val');
        });
        })
    })
    







  Title : 
  


  Tag Line : 
  


  
    
    




  

  
 
alert("Page Updated Successfully!!");alert("Page Not Updated!!");


Я могу получить значение elrte внутри переменной javascript, но теперь я хотел сохранить это значение в базе данных mysql, так как я использую PHP, я хочу получить доступ к этому значению внутри php, чтобы я мог сохранить его в базе данных. попытался использовать window.open ("abc.php? Вэл =»+ Содержание); но значение очень большое, поэтому метод get здесь не может быть приемлемым, так есть ли способ получить это значение внутри php? или любой другой способ сделать это?

** Редактировать :**

Теперь он дает мне значение переменной содержимого после внесения следующих изменений, но я хочу все 3 переменные, но не могу получить

            $('#btnsub').click(function() {
        var content = $('#editor').elrte('val');
        var title = document.getElementById('atitle').val;
        var tag = document.getElementById('atag').val;
        alert('title'+title);
        $.ajax({
          type: "POST",
          url: 'abc.php',
          data: {title : title, tag : tag, content : content},
          success: function(html) { $('result').append(html); },
          dataType: 'html'
        }).done(function( msg ) {
alert( "Data Saved: " + msg );
});

и php файл

alert("Page Updated Successfully!!");alert("Page Not Updated!!");

Теперь, как получить все три переменные ??

Ответы на вопрос(3)

Ваш ответ на вопрос