Добро пожаловать на сайт <БагБД>, где вы можете задавать вопросы о программировании и разработке на Битрикс и Битрикс24, и получать быстрые и квалифицированные ответы от профессионалов!

Как грамотно спасти переменные POST запроса?

00 голосов
2
Если выполняется POST запрос, например,  для добавления элемента в инфоблок, с помощью формы добавления, то массив POST очищается.
Как я понимаю, происходит это потому, что добавление элемента и соответственно обработка такого POST запроса выполняетс каким-то обработчиком в ядре, который формирует пустую страницу с переадресацией на страницу-цель в HEADERS HTTP.
Правильно ли?
Поэтому до целевой странице долетает уже совсем другой запрос браузера в котором переменных POST уже нет.
Но мне необходимы некоторые поля POST чтобы отобразить их на запрашиваемой странице. Для того, что бы пробросить переменные обработанного POST до цели я сейчас использую очевидный костыль - добавляю в init.php:

Код
if (isset($_GET['savepost'])) {
   $_GET["REPOST"] = $_POST;
}
 


И соответственно добавляю в actiopn формы переменную GET 'savepost' - очень некрасиво...
Как добится того же результата грамотно?
Напомню цель - показать значение поля POST запроса в странице и поставить пользователю куку с ней.
Есть еще одна идея - это перехватить добавление элемента в init и поставить куку там. Но тоже не ахти, хоть и кажется лучше...
спросил 03 Май, 14 от Aribor (560 баллов)
<a href="https://coin-master-spins-2021.over-blog.com/2020/12/coin-master-free-spins-link-no-verification-2021-uniqeue.html">Free Spins Coin Master 2021</a>

solid Tips To Finding The Best free Video Games

Buying the right console for video gaming can be a tough decision. You must look at your needs and the various features of the consoles that are available. read not quite the console upon the Internet before making a decision. make determined you get into the reviews left by others. Taking the get older to acquire informed before buying could save you a lot of money and grief.

If you are having badly affect finding older PC games, or even executive them upon current effective systems, attempt searching for online stores that allow downloadable titles. Stores such as Steam or GoG find the money for a wide range of older PC games that have been patched and updated to govern upon ahead of its time Windows and Mac's functional systems. These games in these stores are priced at a fraction of their native cost, making them an affordable gaming option.

For a cheaper showing off to enjoy good video games, look into "classic" games. These titles are years (or even decades) old, but they've been upgraded to manage upon unprejudiced computers and consoles. They're usually quite affordable and usually certainly beloved. in the manner of a game stands the test of time, you can be fairly determined that it has considerable quality.

Be especially cautious about guarding your personal guidance in the realm of online video games. popular games create well-liked targets for hackers and scammers. Never allow out login info or personal data to new players. It's a good idea to use a unique username and password for games and game services; don't re-use login guidance from your email or new online accounts.

Always hear to your body later than you are playing video games. If you're sitting for long periods, you may desire to use a stability ball that aids in keeping the spine straight. following playing entirely physically sprightly games, be sure to loosen going on your body and tolerate frequent flaming breaks.

Become au fait of the recent trends in gaming to say you will advantage of the technological innovations that are out on the spread around today. The new Wii controller has a movement sensor, which is something that you may desire to experience in your game play. Always be upon the lookout for additional trends to optimize your gaming experience.

If there are many games you desire to attempt out but attain not desire to commit to purchasing them, rent them! Rental video games are manageable in local stores or through a mail-order service. You can list as many titles as you desire that you are avid in and check out one or two at a time. Some rental facilities even have digital content you can download immediately.

One of the best things that you can pull off to maximize your overall experience during game affect is to aim off the lights. This is especially fun similar to horror games, as it can addition the overall effect that you get. Creating an optimal character subsequent to playing is completely beneficial for you and your friends.

Although video games come once a great settlement of entertainment, they can along with be quite expensive. Many people are reluctant to pay full price for a video game, and who can blame them. The adjacent time you find to purchase a video game, use the tips from this article and avoid paying full price.

Coin Master Generator 2021
Coin Master Cheats Without Verification 2021
Coin Master Generator 2021
Coin Master Free Coins And Spins 2021
Coin Master Hack Without Verification 2021

1. https://www.usmint.gov/news/press-releases/united-states-mint-reveals-designs-for-the-final-coins-in-the-america-the-beautiful-quarters-program
2. https://www.usa.gov/mobile-apps
https://dralfreds.weebly.com/contact.html


Although video games arrive past a good unity of entertainment, they can as a consequence be quite expensive. Many people are reluctant to pay full price for a video game, and who can blame them. The neighboring era you consider to purchase a video game, use the tips from this article and avoid paying full price.

Coin Master Generator 2021
Free Spins Coin Master Links 2021
Coin Master Free Spins 2021
Coin Master Free Coins And Spins 2021
Coin Master Free Spins Hack 2021

1. https://www.usmint.gov/news/press-releases/united-states-mint-reveals-designs-for-the-final-coins-in-the-america-the-beautiful-quarters-program
2. https://www.usa.gov/mobile-apps
https://imvu-credits-vip-methods-2021-30.webselfsite.net/home


Win IMVU Credits Free 2021
Win IMVU Credits Free 2021
IMVU 10000 Free Credits Promo 2021


KW:
How To Hack People On IMVU 2021
https://hackzworld.xyz/lifeselector-credits-free/
 
KW:
LIFE SELECTOR Credits Hack Free 2021
LIFE SELECTOR Credits Adder 2021
LIFESELECTOR Hacked Account
LIFE SELECTOR Hack Free Download 2021
LIFESELECTOR Account With Credits
LIFE SELECTOR Hack Free
How To Get Free Credits For LIFESELECTOR
https://chelseacollins.org/wp-content/uploads/2021/03/Free-IMVU-Credits-VCOIN-Guide-2021.pdf
 
IMVU is the worlds largest avatar-based social experience following the largest 3D world and catalog that lets you make your avatar and customize your look. Its the ultimate 3D game and social media experience. Its also a great area to meet further friends.
 
You can talk subsequent to friends, roleplay, dress up, party, go on a virtual date, host an event, and belong to a virtual world later millions of others. Its no question free!
 
Enter a virtual world and social talk room. IMVU is more than a vivaciousness vigor - its a virtual life in a 3D world similar to an avatar that you make, to reflect your suitability of style. pick your own life. And go make extra associates that you can talk to practically shared experiences!
 
Customize a 3D avatar, personalize your own buzzing emoji and statement links in super fun talk rooms! Does cartoon have you down? create a fun character! Your objective life, adore simulation and virtual spirit await in IMVU, a metaverse thats taking into account no other!
 
YOUR VIRTUAL LIFE
The avatar sparkle is your life, create it what you want it to be! desire a love story? Go upon a virtual date. Looking for friendship? You can meet other links from all on top of the world. want to explore? A amassed virtual authenticity awaits in IMVUs metaverse. want to make a lot of extra friends? Host an issue and earn tips!
 
CREATE YOUR AVATAR  DOLLIFY YOUR extra SELF
If youre into fashion, this is your inadvertent to dollify yourself over and higher than again. create a environment that will back up you create other friends. Shop without limits and dress going on your avatar to achievement your style!
 
EXPRESS YOURSELF once active WITHMOJI
Take your friendships to a total further level. chat with associates using your personal vibrant WithMoji. Enjoy the online social game with your friends, and role performance your virtual excitement however you desire!
 
3D CHATS  VIRTUAL CONVERSATIONS
Chat with associates from all greater than the world! Meet additional people close and far. The 3D talk gives you full conversations that are more than instant messages.
 
GET SOCIAL AND allowance YOUR MOOD
Change your poses, accumulate filters and publish photos that will allow people something to chat about. The virtual chat gives you a range of emotes, emoji and functions, bringing sparkle to your 3D avatar.
 
Your virtual world, virtual certainty and virtual energy await in the IMVU release app - associate today and start enjoying this fantastic 3D game!
 
KW:
IMVU Free Credits Hack
Earn Free IMVU Credits 2021
How To Get Free Clothes On IMVU
IMVU Credits Codes 2021
IMVU Free Credits No Surveys 2021
IMVU Credits Hack No Survey 2021

2 Ответы

00 голосов
Правильно. Иначе была бы возможность нажатием refresh'а дублировать записи. Используйте обработчики событий.
ответил 28 Дек, 14 от Pomnep (13,960 баллов)
00 голосов
Хм... ясно. Теперь мне стал понятен смысл очистки POST. Спасибо.
Я уже попытался использовать обработчик для установки куки. Использовал OnBeforeIBlockElementAdd. Но куки не ставятся...
Так и должно быть? Или у меня есть какая-то проблема?
ответил 16 Апр, 15 от Aribor (560 баллов)

Похожие вопросы

0 голосов
1 ответ
спросил 27 Авг, 13 от Dimono (120 баллов)
0 голосов
3 ответов
спросил 10 Май, 14 от W1Ng (540 баллов)
0 голосов
2 ответов
спросил 18 Фев, 14 от AndryxaSt (180 баллов)
0 голосов
3 ответов
0 голосов
5 ответов
спросил 09 Май, 13 от avents (160 баллов)