小编Nav*_*ruk的帖子

我正在使用tinymce,是否可以申请一个textarea

我正在使用tinymce,我的页面上有多个文本区域.是否可以申请一个textarea,

1个文本区域用于描述验证,如下所示

var text = tinyMCE.get('txtdesc').getContent();

但是我的页面中还有3个以上的文本区域,所以tineMCE不应该适用于所有这些文本区域

我如何仅适用于一个文本区域

// this is my tinyMCE code 
    tinyMCE.init({
        mode : "textareas",
        theme : "advanced"
    });

// /tinyMCE

javascript textarea tinymce

33
推荐指数
3
解决办法
4万
查看次数

我可以在其他表单标签中嵌套表单标签吗?

我可以<form>在另一个<form>标签内放置标签吗?

例如:

<form>
  <form>
  </form>
</form>
Run Code Online (Sandbox Code Playgroud)

html forms

12
推荐指数
1
解决办法
1万
查看次数

如何向PayPal发送多个项目

我想将多个商品名称和商品价格发送到PayPal,但我无法使用以下代码发布我的商品名称和价格,您可以帮助我吗?

<form method="post"  name="cart" action="https://www.sandbox.paypal.com/cgi-bin/webscr">
    <input type="hidden" name="cmd" value="_xclick">
    <input type="hidden" name="business" value="navive_1295939206_biz@gmail.com">
    <input type="hidden" name="lc" value="US">

    <input type="hidden" name="currency_code" value="USD">
    <input type="hidden" name="button_subtype" value="services">
    <input type="hidden" name="notify_url" value="http://newzonemedia.com/henry/ipn.php" />
    <input type="hidden" name="bn" value="PP-BuyNowBF:btn_buynowCC_LG.gif:NonHosted">
    <input type="hidden" name="return" value="http://www.example.com/thank_you_kindly.html" />


    <?php
    //select items for table
    $srowcart_dtl = mysql_num_rows($srscart_dtl);
    if($srowcart_dtl > 0) {
        $cnt=1;
        while($srscart_dtl1 = mysql_fetch_assoc($srscart_dtl)) {
            ?>  
            <input type="hidden" name="item_name[<?php echo $cnt ?>]" value="<?php echo $srscart_dtl1['cart_iname']; ?>">

            <input type="hidden" name="amount[<?php echo $cnt ?>]" value="<?php echo $srscart_dtl1['cart_iprc']; ?>">
            <?php
            $cnt++;
        } …
Run Code Online (Sandbox Code Playgroud)

paypal paypal-sandbox

7
推荐指数
1
解决办法
1万
查看次数

如何检查是否在我的服务器上安装了PEAR?

我得到的错误如下:

警告:include_once(Net/SMTP.php)[function.include-once]:无法打开流:348行/usr/local/lib/php/Mail/smtp.php中没有此类文件或目录

警告:include_once()[function.include]:在/ usr/local中打开'Net/SMTP.php'以包含(include_path ='.:/ usr/lib/php:/ usr/local/lib/php')失败第348行/lib/php/Mail/smtp.php

致命错误:第349行/usr/local/lib/php/Mail/smtp.php中找不到"Net_SMTP"类

我的代码:

require_once 'Mail.php';

$from = "me@example.com>";

$to = "you@gmail.com>";
$subject = "Hi!";
$body = "Hi,\n\nHow are you?";

$host = "mail.example.com";

$username = "me";
$password = "test";

$headers = array ('From' => $from,
  'To' => $to,
  'Subject' => $subject);

$smtp = Mail::factory('smtp',
  array ('host' => $host,
    'auth' => true,
    'username' => $username,
    'password' => $password));
$mail = $smtp->send($to, $headers, $body);

if (PEAR::isError($mail)) {
  echo("<p>" . $mail->getMessage() . "</p>");
 } else {
  echo("<p>Message successfully …
Run Code Online (Sandbox Code Playgroud)

php email pear

6
推荐指数
3
解决办法
3万
查看次数

登录后如何重定向到同一页面

我有一个购物车产品页面,如果有人点击产品添加到购物车按钮,他们将被重定向到登录页面.

成功登录后,我需要将用户发回相同的产品页面.

php login

5
推荐指数
1
解决办法
8213
查看次数

如何在ajax get或post方法中传递&(&符号)?

我有一个文本框输入描述如果我提交需要通过ajax发送并存储在db中.

问题:-

Example text in textbox:-    "Hi all & solve my problem"

in the next page i am getting till "Hi all" 

Remaining text is missing, If I pass through get or post method using ajax.
Run Code Online (Sandbox Code Playgroud)

给我解决方案.如何获取我放在文本框中的所有内容以及"&"

ajax url post get query-string

4
推荐指数
1
解决办法
8213
查看次数

标头中找不到收件人地址

使用PHP邮件功能发送邮件时出现此错误

错误是: - 在标题中找不到收件人地址

请帮帮我

这是代码

//我的代码从这里开始

        $to  = navruk@gmail.com;
        $subject  = $_POST['txtsub'];
        $messgae  = $_POST['txtmessage'];
        $signature = $_POST['txtsignature'];
        $redirect = "thanks.php";
        $error    = "error.php";

            $body ="<table width='700' align='center' cellpadding='0' cellspacing='0' border='0'>
              <tr>
                <td valign='top'>
                      $messgae <br>
                </td>
              </tr>
              <tr>
                <td valign='top'>
                      $signature <br>
                </td>  
              </tr>
            </table>";

            $from      = "Aakrutisolutions<info@aakrutisolutions.com>";
            $headers  =  "From: $from\n";
            $headers .= 'MIME-Version: 1.0' . "\r\n";
            $headers .= "Content-type: text/html;charset=iso-8859-1\r\n"; 
            $headers .= "Content-Transfer-Encoding: 8bit\r\n";
            $headers .= "X-Priority: 1\r\n"; 
            $headers .= "X-MSMail-Priority: High\r\n"; 
            $headers .= "X-Mailer: Just …
Run Code Online (Sandbox Code Playgroud)

php email

0
推荐指数
2
解决办法
2万
查看次数

标签 统计

php ×3

email ×2

ajax ×1

forms ×1

get ×1

html ×1

javascript ×1

login ×1

paypal ×1

paypal-sandbox ×1

pear ×1

post ×1

query-string ×1

textarea ×1

tinymce ×1

url ×1