/ Published in: PHP
Simply define your POSTURL and POSTVARS in name = value string format. It will post the form.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php define('POSTVARS', 'Aanhef=Mr&Voorletters=testVoorletters&Tussenvoegsel=tetsTussenvoegsel&Achternaam=testfname&Adres=111,ddd,NL&Huisnr=sfsfs&Huisnr_toevoeging=ggggg&Postcode=324234&[email protected]&dealer_id=111'); // POST VARIABLES TO BE SENT // INITIALIZE ALL VARS $Email=''; $ch=''; $Rec_Data=''; $Temp_Output=''; if($_SERVER['REQUEST_METHOD']==='POST') { // REQUIRE POST OR DIE // curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1); $Temp_Output = ltrim(rtrim(trim(strip_tags(trim(preg_replace ( "/\s\s+/" , " " , html_entity_decode($Rec_Data)))),"\n\t\r\h\v\0 ")), "%20"); echo $Temp_Output; echo $Final_Out; exit;