告诉我是否有机会选择两个字符之外的所有字符
我想我写得很清楚,但如果没有,这里有一个例子:
Hello world - {this is} 一个正则表达式!
分别删除粗体部分,只保留{ }之间的部分
告诉我是否有机会选择两个字符之外的所有字符
我想我写得很清楚,但如果没有,这里有一个例子:
Hello world - {this is} 一个正则表达式!
分别删除粗体部分,只保留{ }之间的部分
这个问题已经被问过了,但没有给出正常的答案(可能是一个愚蠢的问题,我提前为此道歉)
我只是不知道该怎么做,以便如果 $key 不适合我可以再次执行该函数,这是一个 AES / ECB / PKCS5Padding 解密脚本,如果密钥不适合,我该如何实现该脚本合适,它将开始替换 key2 例如,等等?或者我是如何被告知我需要替换一系列可能的键,但我不明白在哪里替换,请帮助(
function decrypt($key, $value)
{
if (is_numeric($value)) {
$RES = $value;
} else {
$decoded_value = urldecode($value);
//Convert Base64URL to Base64 by replacing "-" with "+" and "_" with "/"
$b64 = strtr($decoded_value, '-_', '+/');
$result = openssl_decrypt(base64_decode($b64), "AES-128-ECB", hex2bin($key), OPENSSL_PKCS1_PADDING);
$validation_regex = "/^(\d)+((\.)\d+)?\_/";
// Check that the decrypted value is valid
if (preg_match($validation_regex, $result) == 0) {
throw new Exception('Decrypted value is not valid!');
}
list($RES, $b) = explode("_", $result);
}
return $RES;
}
告诉我如何在感谢页面上显示用户在表单中输入的数据
这种php代码
<?php if (!empty($_POST['phone'])) {
send_the_order ($_POST);
}
function send_the_order ($post){
$params=array(
'flow_hash' => $post['flow_hash'],
'landing' => $post['landing'],
'referrer' => $post['referrer'],
'phone' => $post['phone'],
'name' => $post['name'],
'country' => $post['country'],
'address' => $post['address'],
'email' => $post['email'],
'lastname' => $post['lastname'],
'comment' => $post['comment'],
'layer' => $post['layer'],
'sub1' => $post['sub1'],
'sub2' => $post['sub2'],
'sub3' => $post['sub3'],
'sub4' => $post['sub4'],
'sub5' => $post['sub5'],
'link_redirect' => $post['link_redirect']
);
$url = 'СЮДА ОТПРАВЛЯЮТСЯ ДАННЫЕ';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']);
curl_setopt($ch, CURLOPT_REFERER, $url);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $params);
$return= curl_exec($ch);
curl_close($ch);
$array=json_decode($return, true);
header('Location: thanks.php');
}
?>
header('位置:谢谢.php'); (这里您还需要发送数据,但只有姓名和电话)这是他们访问的感谢页面
如果我将表单中的操作更改为thanks.php 页面,那么在这段代码的帮助下,数据一切正常
<?=$_POST['name'];?>
<?=$_POST['phone'];?>
但不要来到需要买家数据的服务器来形成方法,分别 POST
我想马上问,不要喊,我才刚开始明白,我请求你的帮助,我试图寻找答案,我找不到它,也许我在问这个问题不正确,因为我不知道如何正确提问
如果你需要澄清一切,我会抛开一切。
这样的问题,在DOCTYPE之前有一个这样的API在里面登陆
<?php if (!empty($_POST['phone'])) {
send_the_order ($_POST);
}
function send_the_order ($post){
$params=array(
'flow_hash' => $post['flow_hash'],
'landing' => $post['landing'],
'referrer' => $post['referrer'],
'phone' => $post['phone'],
'name' => $post['name'],
'country' => $post['country'],
'address' => $post['address'],
'email' => $post['email'],
'lastname' => $post['lastname'],
'comment' => $post['comment'],
'layer' => $post['layer'],
'sub1' => $post['sub1'],
'sub2' => $post['sub2'],
'sub3' => $post['sub3'],
'sub4' => $post['sub4'],
'sub5' => $post['sub5'],
'link_redirect' => $post['link_redirect']
);
$url = 'http://site.com/api/new-order/';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']);
curl_setopt($ch, CURLOPT_REFERER, $url);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $params);
$return= curl_exec($ch);
curl_close($ch);
$array=json_decode($return, true);
header('Location: Thanks.php');
}
?>
我是从tracker重定向到landing page,get值在landing url中标明(希望我说的没错,以免迷惑任何人,我自己才刚刚开始开发)
值是site.com/?sub1={digits1}&sub2={digits2}&sub3={digits3}&sub4={digits4}&sub5={digits5}
我需要将它们与我需要插入表单的表单一起传递,以便将来自 url 例如 sub1 的数据传输到表单我通过 js 有一个动态的表单到目前为止我不会抛出代码,尝试通过这样的动态形式之一弄清楚
<form class="order_form" action="" method="POST">
<select class="country_select wheel_input" name="country">
<option value="gr">Ελλάδα</option>
<option value="cy">Κύπρος</option>
</select>
<div style="display: none">
<input type="hidden" name="ip" value="<?=$_SERVER['REMOTE_ADDR']?/>">
<input type="hidden" name="createdAt" value="<?=date(" y-m-d="" h:i:s")?="">">
<input type="hidden" name="userAgent" value="<?=$_SERVER['HTTP_USER_AGENT']?>">
<input type="hidden" name="flow_hash" value="ZVik">
<input type="hidden" name="sub1" value="">
<input type="hidden" name="sub2" value="">
<input type="hidden" name="sub3" value="">
<input type="hidden" name="sub4" value="">
<input type="hidden" name="sub5" value="">
<input type="hidden" name="referrer" value="<?=$_SERVER['HTTP_REFERER']?>">
</div>
<label for="name" class="data_label">Εισαγάγετε ένα όνομα</label>
<input class="wheel_input" type="text" name="name" required="" id="name" placeholder="Πλήρες όνομα"><label for="phone" class="data_label">Εισαγάγετε το τηλέφωνο</label>
<input class="wheel_input" type="text" id="phone" name="phone" required="" placeholder="Τηλέφωνο">
<input type="hidden" name="landing" value="blognevs.com/gr/ketodiet/108/">
<button class="main-link" type="submit">Αγορά με έκπτωση 50%!</button>
</form>
这是从代码视图中复制过来的,因为它是由几个js结构粘合在一起的,原来我需要将代码从url转移到表单的Sub1中
升级版:
formApi: {
isNeeded: 1,
landingValue: '',
countryName: 'Ελλάδα',
flowHash: 'ZVik',
priceMain: 29,
currencyMain: 'EUR',
sub1: ''
},
WebStorm 无法在 Mac OS 上启动
在设置中编辑自定义 VM 选项更改了 javaagent 如何改回来
试图重新安装什么
也许剩菜存放在某个地方以完全拆除,或者文件可能只是保留下来,我可以更改它。
我只是不知道如何将绿色条填充到 100,你能帮忙吗?)
<svg version="1.1" style="font-family:"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif;font-size:12px;" xmlns="http://www.w3.org/2000/svg" width="260" height="170"><desc>Created with Highcharts 4.2.3 /Highstock 4.2.3</desc>
<defs>
<clipPath id="highcharts-1">
<rect x="0" y="0" width="240" height="145"></rect>
</clipPath>
</defs>
<rect x="0" y="0" width="260" height="170" fill="transparent" class=" highcharts-background"></rect>
<path fill="#EEE" d="M 14 133.25 A 116 116 0 1 1 245.99994200000484 133.13400001933337 L 199.59996520000288 133.18040001160003 A 69.6 69.6 0 1 0 60.400000000000006 133.25 Z" stroke="silver" stroke-width="1" zIndex="0" visibility="visible"></path>
<g class="highcharts-grid" zIndex="1"></g>
<g class="highcharts-axis" zIndex="2"></g>
<g class="highcharts-data-labels highcharts-series-0 highcharts-tracker" zIndex="2" visibility="visible" transform="translate(10,10) scale(1 1)" style="">
<g zIndex="1" style="" transform="translate(80,78)"></g>
</g>
<g class="highcharts-series-group" zIndex="3">
<g class="highcharts-series highcharts-series-0 highcharts-tracker" zIndex="0.1" transform="translate(10,10) scale(1 1)" style="" clip-path="url(#highcharts-1)">
<path fill="rgb(190,230,69)" d="M 4 123.24999999999999 A 116 116 0 0 1 213.77774134661007 54.97309886990841 L 176.26664480796603 82.28385932194504 A 69.6 69.6 0 0 0 50.400000000000006 123.24999999999999 Z" sweep-flag="0" stroke-linejoin="round" stroke-linecap="round"></path>
</g>
<g class="highcharts-markers highcharts-series-0" zIndex="0.1" transform="translate(10,10) scale(1 1)" clip-path="none">
</g>
</g>
<g class="highcharts-legend" zIndex="7">
<g zIndex="1">
<g></g>
</g>
</g>
<g class="highcharts-axis-labels highcharts-yaxis-labels" zIndex="7">
<text x="39" style="color:#606060;cursor:default;font-size:11px;fill:#606060;width:76px;text-overflow:clip;" text-anchor="middle" transform="translate(0,0)" y="149.25" opacity="1">0</text>
<text x="221" style="color:#606060;cursor:default;font-size:11px;fill:#606060;width:76px;text-overflow:clip;" text-anchor="middle" transform="translate(0,0)" y="149.25000000000003" opacity="1">100</text>
</g>
</svg>
是否可以默认将保存的文件的扩展名更改为.txt,顺便说一句,即使我选择,.txt 文件也会在没有扩展名的情况下保存(我也想知道如何解决这个问题)。
通过在互联网上搜索,似乎不可能,然后如果没有,我安装了 Markdown Editing 并认为也许我可以在创建新文件时以某种方式制作标准语法,Markdown 之后,制作它以便将 Markdown 保存在。文本
这是一个问题,如果有办法我将不胜感激。谢谢你。