3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $email = isset($_REQUEST['email'])? $_REQUEST['email']: ""; $name=isset($_REQUEST['name'] )? $_REQUEST['name']: "" ; $phone = isset($_REQUEST['phone'] )? $_REQUEST['phone']: ""; $company = isset($_REQUEST['company'] )? $_REQUEST['company']: ""; $comment = isset($_REQUEST['commenttext'] )? $_REQUEST['commenttext']: ""; $title = isset($_REQUEST['title '] )? $_REQUEST['title ']: ""; // $budget = isset($_REQUEST['budget'] )? $_REQUEST['budget']: ""; // $country = isset($_REQUEST['country'] )? $_REQUEST['country']: ""; // $fax = isset($_REQUEST['fax'] )? $_REQUEST['fax']: ""; // $title = isset($_REQUEST['subject'] )? $_REQUEST['subject']: ""; //$link= $_SERVER['HTTP_REFERER']; //$IPaddress = $_SERVER['REMOTE_ADDR']; $file= isset($_FILES['upload']['name']) ? $_FILES['upload']['name']:""; //$fieldOrder=explode(',',$_REQUEST['fieldOrder']); if(count($fieldOrder)<=1) { // $extrafields = $_REQUEST['fieldOrder']; } else { for($i=0;$i<count($fieldOrder);$i++) { if($fieldOrder[$i]!="") { $extrafields = $extrafields . " | " .$_REQUEST[$fieldOrder[$i]]; } } } if($file!="") { move_uploaded_file($_FILES['upload']['tmp_name'],"../lakeb2b/re-marketing/upload/".str_replace(" ","-",$_FILES['upload']['name'])); $extrafields=$extrafields." | " ."http://localhost/lakeb2b/re-marketing/upload/".str_replace(" ","-","$file"); } ?> <html> <body onLoad="javascript:document.frmTracking.submit();"> <form action="https://www.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8" method="post" name="frmTracking" id="frmTracking" > <input name="email" type="hidden" value="<?php echo $email; ?>"/> <input name="first_name" type="hidden" value="<?php echo $name; ?>"/> <input name="phone" type="hidden" value="<?php echo $phone; ?>"/> <input name="company" type="hidden" value="<?php echo $company; ?>"/> <input name="URL" type="hidden" value="<?php echo $link; ?>"/> <input name="street" type="hidden" value="<?php echo $Address; ?>"/> <input name="country" type="hidden" value="<?php echo $country; ?>"/> <input name="retURL" type="hidden" value="http://localhost/lakeb2b/re-marketing/thank-you.php"/> <input name="title" type="hidden" value="<?php echo $title; ?>"/> <input name="lead_source" type="hidden" value="Nurtured Leads"/> <input type=hidden name="oid" value="00D90000000cdxt"/> <input name="description" type="hidden" value="<?php echo $extrafields; ?>"/> <input name="00N90000003Gb75EAC" type="hidden" value="<?php echo $Comments; ?>"/> <input name="faxOptOut" type="hidden" value="<?php echo $fax; ?>"/> <input name="00N90000003Gb3O" type="hidden" value="<?php echo $budget; ?>"/> <input name="00N90000006pnvV" type="hidden" value="<?php echo $IPaddress; ?>"/> </form> </body> </html>
based on r4527
Output for 7.2.0
Notice: Undefined variable: fieldOrder in /in/dvX42 on line 19 Warning: count(): Parameter must be an array or an object that implements Countable in /in/dvX42 on line 19 <html> <body onLoad="javascript:document.frmTracking.submit();"> <form action="https://www.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8" method="post" name="frmTracking" id="frmTracking" > <input name="email" type="hidden" value=""/> <input name="first_name" type="hidden" value=""/> <input name="phone" type="hidden" value=""/> <input name="company" type="hidden" value=""/> <input name="URL" type="hidden" value=" Notice: Undefined variable: link in /in/dvX42 on line 51 "/> <input name="street" type="hidden" value=" Notice: Undefined variable: Address in /in/dvX42 on line 52 "/> <input name="country" type="hidden" value=" Notice: Undefined variable: country in /in/dvX42 on line 53 "/> <input name="retURL" type="hidden" value="http://localhost/lakeb2b/re-marketing/thank-you.php"/> <input name="title" type="hidden" value=""/> <input name="lead_source" type="hidden" value="Nurtured Leads"/> <input type=hidden name="oid" value="00D90000000cdxt"/> <input name="description" type="hidden" value=" Notice: Undefined variable: extrafields in /in/dvX42 on line 58 "/> <input name="00N90000003Gb75EAC" type="hidden" value=" Notice: Undefined variable: Comments in /in/dvX42 on line 59 "/> <input name="faxOptOut" type="hidden" value=" Notice: Undefined variable: fax in /in/dvX42 on line 60 "/> <input name="00N90000003Gb3O" type="hidden" value=" Notice: Undefined variable: budget in /in/dvX42 on line 61 "/> <input name="00N90000006pnvV" type="hidden" value=" Notice: Undefined variable: IPaddress in /in/dvX42 on line 62 "/> </form> </body> </html>
Output for 5.3.18 - 7.1.10
Notice: Undefined variable: fieldOrder in /in/dvX42 on line 19 <html> <body onLoad="javascript:document.frmTracking.submit();"> <form action="https://www.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8" method="post" name="frmTracking" id="frmTracking" > <input name="email" type="hidden" value=""/> <input name="first_name" type="hidden" value=""/> <input name="phone" type="hidden" value=""/> <input name="company" type="hidden" value=""/> <input name="URL" type="hidden" value=" Notice: Undefined variable: link in /in/dvX42 on line 51 "/> <input name="street" type="hidden" value=" Notice: Undefined variable: Address in /in/dvX42 on line 52 "/> <input name="country" type="hidden" value=" Notice: Undefined variable: country in /in/dvX42 on line 53 "/> <input name="retURL" type="hidden" value="http://localhost/lakeb2b/re-marketing/thank-you.php"/> <input name="title" type="hidden" value=""/> <input name="lead_source" type="hidden" value="Nurtured Leads"/> <input type=hidden name="oid" value="00D90000000cdxt"/> <input name="description" type="hidden" value=" Notice: Undefined variable: extrafields in /in/dvX42 on line 58 "/> <input name="00N90000003Gb75EAC" type="hidden" value=" Notice: Undefined variable: Comments in /in/dvX42 on line 59 "/> <input name="faxOptOut" type="hidden" value=" Notice: Undefined variable: fax in /in/dvX42 on line 60 "/> <input name="00N90000003Gb3O" type="hidden" value=" Notice: Undefined variable: budget in /in/dvX42 on line 61 "/> <input name="00N90000006pnvV" type="hidden" value=" Notice: Undefined variable: IPaddress in /in/dvX42 on line 62 "/> </form> </body> </html>