Jump to content
Killersites Forums

abanksob1

Member
  • Posts

    15
  • Joined

  • Last visited

About abanksob1

  • Birthday 11/24/1984

Profile Information

  • Gender
    Male

Contact Methods

  • Website
    http://moverscommunity.com
  • Twitter
    http://twitter.com/moverscommunity

abanksob1's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. abanksob1

    Captcha

    i need help iv been trying to add captch to my forum to combat spam no luck . here is my index form page php: <form action="send.php" method="post" name="qtfrm" id="qtfrm" onsubmit="return freeQuotesOK()"> <input type="hidden" name="freequote" value="1" /> <table width="96%" border="1" align="center" bordercolor="#CCCCCC"> <tbody> <tr> <td height="300" bgcolor="#FFCC66"><table cellspacing="0" cellpadding="3" align="center"> <tbody> <tr> </tr> <tr> </tr> <tr> <td colspan="2" height="4"></td> </tr> <tr> <td>First Name: </td> <td><input type="text" name="name" style='width:250px' /> *</td> </tr> <tr> <td>Last name: </td> <td><input size="25" name="Last_Name" style='width:250px' /> *</td> </tr> <tr> <td>Home Phone: </td> <td><input type="text" name="phone" style='width:250px' /> *</td> </tr> <tr> </tr> <tr> <td>Email: </td> <td><input type="text" name="email" style='width:250px' /> *</td> </tr> <tr> <td>Contact me at: </td> <td><select name="Contact_Preference"> <option value="">Select Phone</option> <option value="home">Home</option> <option value="work">Work</option> </select> * in the <select name="Contact_Time"> <option value="">Select Time</option> <option value="morning">Morning</option> <option value="noon">Noon</option> <option value="evening">Evening</option> <option value="anytime">AnyTime</option> </select> *</td> </tr> </tbody> </table> <table cellspacing="0" cellpadding="0" align="center" border="0"> <tbody> <tr> <td align="middle" colspan="4">How Many Quotes <strong>:</strong> 3 <input id="radio3" type="radio" name="How_Quotes" value="3" /> 5 <input id="cty" type="radio" name="How_Quotes" value="5" /> 7 <input id="lgr" type="radio" name="How_Quotes" value="7" /> 8 <input id="radio" type="radio" name="How_Quotes" value="8" /> 10 <input id="radio2" type="radio" name="How_Quotes" value="10" checked='checked' /> </td> </tr> <tr> </tr> <tr> <td bgcolor="#336699" colspan="4" height="2"></td> </tr> <tr> <td colspan="4" height="4"></td> </tr> <tr> <td> </td> <td>Moving From</td> <td> </td> <td>Moving To</td> </tr> <tr> <td>City: </td> <td><input size="15" value="<?=$From_City?>" name="From_City" /> *</td> <td>City: </td> <td><input size="15" value="<?=$To_City?>" name="To_City" /></td> </tr> <tr> <td>State: </td> <td><select style='font-size:12px' name="From_State"> <option value="">Select State</option> <option value="Alaska">Alaska</option> <option value="Alabama">Alabama</option> <option value="American Samoa">American Samoa</option> <option value="Arizona">Arizona</option> <option value="Arkansas">Arkansas</option> <option value="California">California</option> <option value="Colorado">Colorado</option> <option value="Connecticut">Connecticut</option> <option value="Delaware">Delaware</option> <option value="District of Columbia">District of Columbia</option> <option value="Federated States of Micronesia">Federated States of Micronesia</option> <option value="Florida">Florida</option> <option value="Georgia">Georgia</option> <option value="Guam">Guam</option> <option value="Hawaii">Hawaii</option> <option value="Idaho">Idaho</option> <option value="Illinois">Illinois</option> <option value="Indiana">Indiana</option> <option value="Iowa">Iowa</option> <option value="Kansas">Kansas</option> <option value="Kentucky">Kentucky</option> <option value="Louisiana">Louisiana</option> <option value="Maine">Maine</option> <option value="Marshall Islands">Marshall Islands</option> <option value="Maryland">Maryland</option> <option value="Massachusetts">Massachusetts</option> <option value="Michigan">Michigan</option> <option value="Minnesota">Minnesota</option> <option value="Mississippi">Mississippi</option> <option value="Missouri">Missouri</option> <option value="Montana">Montana</option> <option value="Nebraska">Nebraska</option> <option value="Nevada">Nevada</option> <option value="New Hampshire">New Hampshire</option> <option value="New Jersey">New Jersey</option> <option value="New Mexico">New Mexico</option> <option value="New York">New York</option> <option value="North Carolina">North Carolina</option> <option value="North Dakota">North Dakota</option> <option value="Northern Mariana Islands">Northern Mariana Islands</option> <option value="Ohio">Ohio</option> <option value="Oklahoma">Oklahoma</option> <option value="Oregon">Oregon</option> <option value="Palau">Palau</option> <option value="Pennsylvania">Pennsylvania</option> <option value="Puerto Rico">Puerto Rico</option> <option value="Rhode Island">Rhode Island</option> <option value="South Carolina">South Carolina</option> <option value="South Dakota">South Dakota</option> <option value="Tennessee">Tennessee</option> <option value="Texas">Texas</option> <option value="Utah">Utah</option> <option value="Vermont">Vermont</option> <option value="Virgin Islands">Virgin Islands</option> <option value="Virginia">Virginia</option> <option value="Washington">Washington</option> <option value="West Virginia">West Virginia</option> <option value="Wisconsin">Wisconsin</option> <option value="Wyoming">Wyoming</option> <option value="Armed Forces Middle East">Armed Forces Middle East</option> <option value="Armed Forces Pacific">Armed Forces Pacific</option> </select> *</td> <td>State: </td> <td><select style='font-size:12px' name="To_State"> <option value="">Select State</option> <option value="Alaska">Alaska</option> <option value="Alabama">Alabama</option> <option value="American Samoa">American Samoa</option> <option value="Arizona">Arizona</option> <option value="Arkansas">Arkansas</option> <option value="California">California</option> <option value="Colorado">Colorado</option> <option value="Connecticut">Connecticut</option> <option value="Delaware">Delaware</option> <option value="District of Columbia">District of Columbia</option> <option value="Federated States of Micronesia">Federated States of Micronesia</option> <option value="Florida">Florida</option> <option value="Georgia">Georgia</option> <option value="Guam">Guam</option> <option value="Hawaii">Hawaii</option> <option value="Idaho">Idaho</option> <option value="Illinois">Illinois</option> <option value="Indiana">Indiana</option> <option value="Iowa">Iowa</option> <option value="Kansas">Kansas</option> <option value="Kentucky">Kentucky</option> <option value="Louisiana">Louisiana</option> <option value="Maine">Maine</option> <option value="Marshall Islands">Marshall Islands</option> <option value="Maryland">Maryland</option> <option value="Massachusetts">Massachusetts</option> <option value="Michigan">Michigan</option> <option value="Minnesota">Minnesota</option> <option value="Mississippi">Mississippi</option> <option value="Missouri">Missouri</option> <option value="Montana">Montana</option> <option value="Nebraska">Nebraska</option> <option value="Nevada">Nevada</option> <option value="New Hampshire">New Hampshire</option> <option value="New Jersey">New Jersey</option> <option value="New Mexico">New Mexico</option> <option value="New York">New York</option> <option value="North Carolina">North Carolina</option> <option value="North Dakota">North Dakota</option> <option value="Northern Mariana Islands">Northern Mariana Islands</option> <option value="Ohio">Ohio</option> <option value="Oklahoma">Oklahoma</option> <option value="Oregon">Oregon</option> <option value="Palau">Palau</option> <option value="Pennsylvania">Pennsylvania</option> <option value="Puerto Rico">Puerto Rico</option> <option value="Rhode Island">Rhode Island</option> <option value="South Carolina">South Carolina</option> <option value="South Dakota">South Dakota</option> <option value="Tennessee">Tennessee</option> <option value="Texas">Texas</option> <option value="Utah">Utah</option> <option value="Vermont">Vermont</option> <option value="Virgin Islands">Virgin Islands</option> <option value="Virginia">Virginia</option> <option value="Washington">Washington</option> <option value="West Virginia">West Virginia</option> <option value="Wisconsin">Wisconsin</option> <option value="Wyoming">Wyoming</option> <option value="Armed Forces Middle East">Armed Forces Middle East</option> <option value="Armed Forces Pacific">Armed Forces Pacific</option> </select> *</td> </tr> <tr> <td>Zip: </td> <td><input maxlength="5" size="5" name="From_Zip" /> *</td> <td>Zip: </td> <td><input maxlength="5" size="5" name="To_Zip" /> * </td> </tr> </tbody> </table> <table cellspacing="0" cellpadding="0" align="center" border="0"> <tbody> <tr> <td bgcolor="#336699" colspan="2" height="2"></td> </tr> <tr> <td colspan="2" height="4"></td> </tr> <tr> <td height="25">Move Date: </td> <td><select size="1" name="MoveMonth"> <option value="1">Jan</option> <option value="2">Feb</option> <option value="3">Mar</option> <option value="4">Apr</option> <option value="5">May</option> <option value="6">Jun</option> <option value="7">Jul</option> <option value="8">Aug</option> <option value="9">Sep</option> <option value="10">Oct</option> <option value="11">Nov</option> <option value="12">Dec</option> </select> <select size="1" name="MoveDay"> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> <option value="4">4</option> <option value="5">5</option> <option value="6">6</option> <option value="7">7</option> <option value="8">8</option> <option value="9">9</option> <option value="10">10</option> <option value="11">11</option> <option value="12">12</option> <option value="13">13</option> <option value="14">14</option> <option value="15">15</option> <option value="16">16</option> <option value="17">17</option> <option value="18">18</option> <option value="19">19</option> <option value="20">20</option> <option value="21">21</option> <option value="22">22</option> <option value="23">23</option> <option value="24">24</option> <option value="25">25</option> <option value="26">26</option> <option value="27">27</option> <option value="28">28</option> <option value="29">29</option> <option value="30">30</option> <option value="31">31</option> </select> <select size="1" name="MoveYear"> <option value="2010">2010</option> <option value="2011">2011</option> <option value="2011">2012</option> <option value="2011">2013</option> <option value="2011">2014</option> </select> *</td> </tr> <tr> <td height="25">Move Size: </td> <td><select size="1" name="Move_Size"> <option value="">Residential Types:</option> <option value="Partial Home">Partial Home</option> <option value="Studio">Studio</option> <option value="1 Small Bedroom">1 Small Bedroom</option> <option value="1 Large Bedroom">1 Large Bedroom</option> <option value="2 Bedroom">2 Bedroom</option> <option value="3 Bedroom">3 Bedroom</option> <option value="4 Bedroom">4 Bedroom</option> <option value="More Than 4 Bedroom">More Than 4 Bedroom</option> </select> *</td> </tr> <tr> <td height="25"> </td> <td> </td> </tr> <tr> <td colspan="2"><p align="center"> </p> <p align="center"> <input name="button" type="image" onclick='if (freeQuotesOK()) document.qtfrm.submit()' value='Send >>' src="formSubmit.png" align="middle" /> </p></td> </tr> </tbody> </table></td> </tr> </tbody> </table> </form> and here is my send.php <? include_once "connect.php"; include_once "functions.php"; } if (isset($_POST['name']) && !isset($_POST['freequote'])) { $MSG = 'Contact Us:<br>'; $MSG .= (isset($_POST['name']))? 'Name = '.$_POST['name']."<br>" : ''; $MSG .= (isset($_POST['phone']))? 'Phone = <span dir=ltr>'.$_POST['phone']."</span><br>" : ''; $MSG .= (isset($_POST['email']))? 'Email = <span dir=ltr>'.$_POST['email']."</span><br>" : ''; $MSG .= (isset($_POST['comment']))? 'Comments = '.nl2br($_POST['comment'])."<br>" : ''; $MSG = "<div>$MSG</div>"; $headers = "MIME-Version: 1.0\n"; $headers .= "Content-type: text/html; charset=windows-1255\n"; $headers .= "From: Movers Community <info@moverscommunity.com>\n"; $subject = "From Website: ".$_SERVER['REMOTE_ADDR']; $st = mail('avidanbanks@gmail.com ', $subject, $MSG, $headers); header('location: ../thanks.php'); exit(); } if (isset($_POST['freequote'])) { $phone = fixquotes($_REQUEST['phone']); $phone2 = fixquotes($_REQUEST['phone2']); $name = fixquotes($_REQUEST['name']); $Last_Name = fixquotes($_REQUEST['Last_Name']); $email = fixquotes($_REQUEST['email']); $How_Quotes = intval($_REQUEST['How_Quotes']); $contactTime = fixquotes($_REQUEST['Contact_Time']); $contactPref = fixquotes($_REQUEST['Contact_Preference']); $From_City = fixquotes($_REQUEST['From_City']); $To_City = fixquotes($_REQUEST['To_City']); $From_State = fixquotes($_REQUEST['From_State']); $To_State = fixquotes($_REQUEST['To_State']); $From_Zip = fixquotes($_REQUEST['From_Zip']); $To_Zip = fixquotes($_REQUEST['To_Zip']); $Move_Date = strtotime($_REQUEST['MoveMonth']."/".$_REQUEST['MoveDay']."/".$_REQUEST['MoveYear']); $Move_Size = fixquotes($_REQUEST['Move_Size']); $comment = fixquotes($_REQUEST['comment']); $dater = strtotime("now"); $sql = " INSERT INTO leads ( homePhone, workPhone, firstName, lastName, email, origQuotes, contactPref, contactTime, From_City, To_City, From_State, To_State, From_Zip, To_Zip, Move_Date, Move_Size, comment, dater ) VALUES( '$phone','$phone2','$name','$Last_Name','$email','$How_Quotes', '$contactPref', '$contactTime', '$From_City', '$To_City', '$From_State', '$To_State', '$From_Zip', '$To_Zip', '$Move_Date', '$Move_Size', '$comment', '$dater' )"; $rs = mysql_query($sql); $MSG = 'Free Quote:<br>'; $MSG .= (isset($_POST['name']))? 'Name = '.$_POST['name']."<br>" : ''; $MSG .= (isset($_POST['Last_Name']))? 'Last Name = '.$_POST['Last_Name']."<br>" : ''; $MSG .= (isset($_POST['phone']))? 'Home Phone = <span dir=ltr>'.$_POST['phone']."</span><br>" : ''; $MSG .= (isset($_POST['phone2']))? 'Work Phone = <span dir=ltr>'.$_POST['phone2']."</span><br>" : ''; $MSG .= (isset($_POST['email']))? 'Email = <span dir=ltr>'.$_POST['email']."</span><br>" : ''; $MSG .= 'Contact Preference = <span dir=ltr>'.$_POST['Contact_Preference']."</span><br>"; $MSG .= 'Contact Time = <span dir=ltr>'.$_POST['Contact_Time']."</span><br>"; $MSG .= 'How many quotes = <span dir=ltr>'.$_POST['How_Quotes']."</span><br>"; $MSG .= 'From City = <span dir=ltr>'.$_POST['From_City']."</span><br>"; $MSG .= 'To City = <span dir=ltr>'.$_POST['To_City']."</span><br>"; $MSG .= 'From State = <span dir=ltr>'.$_POST['From_State']."</span><br>"; $MSG .= 'To State = <span dir=ltr>'.$_POST['To_State']."</span><br>"; $MSG .= 'From Zip = <span dir=ltr>'.$_POST['From_Zip']."</span><br>"; $MSG .= 'To Zip = <span dir=ltr>'.$_POST['To_Zip']."</span><br>"; $MSG .= 'Move Date = <span dir=ltr>'.$_POST['MoveMonth']."/".$_POST['MoveDay']."/".$_POST['MoveYear']."</span><br>"; $MSG .= 'Move Size = <span dir=ltr>'.$_POST['Move_Size']."</span><br>"; $MSG .= (isset($_POST['comment']))? 'Comments = '.nl2br($_POST['comment'])."<br>" : ''; $MSG = "<div>$MSG</div>"; $headers = "MIME-Version: 1.0\n"; $headers .= "Content-type: text/html; charset=windows-1255\n"; $headers .= "From: Movers Community <info@moverscommunity.com>\n"; $subject = "From Website: ".$_SERVER['REMOTE_ADDR']; $st = mail('shawn2411@gmail.com ', $subject, $MSG, $headers); /*echo $sql; echo "<br>"; die($MSG);*/ header('location: ../thanks.php'); exit(); } ?> please help i tried to many scrip nothing working .
  2. life is good unless you tell your shelf otherwise :)

  3. I recently submitted an article to hundreds of directories with the wrong file page instead of ht tp://moverscommunity.com/free quotes3.php [remove spaces] i sent it with url freequotes3.ph how can i fix it is there a way i can create the a file as .ph and do a 301 redirect to the original url google indexed already hundred of sites pointing back to the page please help
  4. well basically after i collect the data i need to send it to a url data system currently i can send the file as a xml and html to people email addresses , i need to be able to send it for example http://test.granot.com/bin/wc.dll?lidgw~TESTLEADPOSTING they have a system where automatically collect the data as xml . usually me webmaster deals with this he is currently on vacation is this a hard thing to do ?
  5. hi post an XML file or Data to https:// URl I have an xml filled out form, that needs to be sent to a url how do i go about this please help <? include_once "connect.php"; include_once "../functions.php"; if (!$compid) { header("Location: login.php"); exit("Not logged in"); } $ids = array(); $rs = mysql_query("SELECT id FROM leads WHERE origQuotes>$minOrigQuotes AND origQuotes>fetchedQuotes") or die(mysql_error()); while (list($id) = mysql_fetch_array($rs)) { if (!empty($_REQUEST["cb$id"])) { $ids[] = $id; } } if (count($ids)) { $ids = "(id=".implode(" OR id=", $ids).")"; $rs = mysql_query("SELECT leftLeads FROM companies WHERE id=$compid") or die(mysql_error()); list($limit) = mysql_fetch_array($rs); } else $limit=$ids=0; include "header.php"; $rs = mysql_query("SELECT email FROM companies WHERE id=$compid") or die(mysql_error()); list($compEmail) = mysql_fetch_array($rs); $rs = mysql_query("SELECT * FROM leads WHERE $ids LIMIT $limit"); $ok=0; $xml = intval($_REQUEST['xml']); $xmlMSG = ""; $ids = array(); $headers = "MIME-Version: 1.0\n"; $headers .= "Content-type: text/html; charset=iso-8859-1\n"; $headers .= "From: Movers Community <info@moverscommunity.com>\n"; while ($row = mysql_fetch_row($rs)) { for ($x = 0; $x < mysql_num_fields($rs); $x++) { $a=mysql_fetch_field($rs, $x); ${$a->name} = trim(stripslashes($row[$x])); } if ($xml == 0) { $MSG = "Name = $firstName $lastName<br>"; $MSG .= "Home Phone = $homePhone<br>"; $MSG .= "Work Phone = $workPhone<br>"; $MSG .= "Email = $email<br>"; $MSG .= "Move Date = ".date("m/d/Y", $Move_Date)."<br>"; $MSG .= "Move Size = $Move_Size<br>"; $MSG .= "From City = $From_City<br>"; $MSG .= "From State = $From_State<br>"; $MSG .= "From Zip = $From_Zip<br>"; $MSG .= "To City = $To_City<br>"; $MSG .= "To State = $To_State<br>"; $MSG .= "To Zip = $To_Zip<br>"; $MSG .= "Comments = ".nl2br($comment)."<br>"; $MSG = "<div>$MSG</div>"; $subject = "Lead From Movers Community"; $st = mail($compEmail, $subject, $MSG, $headers); echo ($st) ? "Lead #$id sent.<br>" : "Lead #$id couldn't be sent.<br>"; flush(); if ($st) { $ok++; mysql_query("UPDATE companies SET leftLeads=leftLeads-1, totalLeadsUsed=totalLeadsUsed+1 WHERE id=$compid") or die(mysql_error()); mysql_query("UPDATE leads SET fetchedQuotes=fetchedQuotes+1 WHERE id='$id'") or die("ERROR #1322"); mysql_query("REPLACE INTO chosenLeads (lid, cid) VALUES('$id','$compid')") or die("ERROR #1323"); } } else { $xmlMSG .= " <lead>\n"; $xmlMSG .= " <Name>$firstName $lastName</Name>\n"; $xmlMSG .= " <Home_Phone>$homePhone</Home_Phone>\n"; $xmlMSG .= " <Work_Phone>$workPhone</Work_Phone>\n"; $xmlMSG .= " <Email>$email</Email>\n"; $xmlMSG .= " <Move_Date>".date("m/d/Y", $Move_Date)."</Move_Date>\n"; $xmlMSG .= " <Move_Size>$Move_Size</Move_Size>\n"; $xmlMSG .= " <From_City>$From_City</From_City>\n"; $xmlMSG .= " <From_State>$From_State</From_State>\n"; $xmlMSG .= " <From_Zip>$From_Zip</From_Zip>\n"; $xmlMSG .= " <To_City>$To_City</To_City>\n"; $xmlMSG .= " <To_State>$To_State</To_State>\n"; $xmlMSG .= " <To_Zip>$To_Zip</To_Zip>\n"; $xmlMSG .= " <Comments><![CDATA[$comment]]</Comments>\n"; $xmlMSG .= " </lead>\n"; $ids[] = $id; } //echo "$MSG<BR><BR><BR>"; //die($MSG); //header('location: thanks.php'); //exit(); } if ($xml && count($ids)) { $xmlMSG = "<leads>\n$xmlMSG</leads>"; //print_r($ids); //die($xmlMSG); $subject = "Leads From Movers Community"; $st = mail($compEmail, $subject, $xmlMSG, $headers); if ($st) { foreach ($ids as $id) { echo "Lead #$id sent.<br>"; $ok++; mysql_query("UPDATE companies SET leftLeads=leftLeads-1, totalLeadsUsed=totalLeadsUsed+1 WHERE id=$compid") or die(mysql_error()); mysql_query("UPDATE leads SET fetchedQuotes=fetchedQuotes+1 WHERE id='$id'") or die("ERROR #1322"); mysql_query("REPLACE INTO chosenLeads (lid, cid) VALUES('$id','$compid')") or die("ERROR #1323"); } } echo "Leads couldn't be sent.<br>"; } echo "<br><br><center><big><b>"; echo "<span style='color:red'>$ok</span> leads were sent to $compEmail<br>"; echo "</b></big></center>"; include "footer.php"; ?> please let me
  6. i have a simple html registration form i am trying to submit the collected data as xml please let me know can i do this. this is my send.php please advise <? include_once "connect.php"; include_once "functions.php"; if (isset($_POST['name']) && !isset($_POST['freequote'])) { $MSG = 'Contact Us:<br>'; $MSG .= (isset($_POST['name']))? 'Name = '.$_POST['name']."<br>" : ''; $MSG .= (isset($_POST['phone']))? 'Phone = <span dir=ltr>'.$_POST['phone']."</span><br>" : ''; $MSG .= (isset($_POST['email']))? 'Email = <span dir=ltr>'.$_POST['email']."</span><br>" : ''; $MSG .= (isset($_POST['comment']))? 'Comments = '.nl2br($_POST['comment'])."<br>" : ''; $MSG = "<div>$MSG</div>"; $headers = "MIME-Version: 1.0\n"; $headers .= "Content-type: text/html; charset=windows-1255\n"; $headers .= "From: Movers Community <info@moverscommunity.com>\n"; $subject = "From Website: ".$_SERVER['REMOTE_ADDR']; $st = mail(' ', $subject, $MSG, $headers); header('location: thanks.php'); exit(); } if (isset($_POST['freequote'])) { $phone = fixquotes($_REQUEST['phone']); $phone2 = fixquotes($_REQUEST['phone2']); $name = fixquotes($_REQUEST['name']); $Last_Name = fixquotes($_REQUEST['Last_Name']); $email = fixquotes($_REQUEST['email']); $How_Quotes = intval($_REQUEST['How_Quotes']); $contactTime = fixquotes($_REQUEST['Contact_Time']); $contactPref = fixquotes($_REQUEST['Contact_Preference']); $From_City = fixquotes($_REQUEST['From_City']); $To_City = fixquotes($_REQUEST['To_City']); $From_State = fixquotes($_REQUEST['From_State']); $To_State = fixquotes($_REQUEST['To_State']); $From_Zip = fixquotes($_REQUEST['From_Zip']); $To_Zip = fixquotes($_REQUEST['To_Zip']); $Move_Date = strtotime($_REQUEST['MoveMonth']."/".$_REQUEST['MoveDay']."/".$_REQUEST['MoveYear']); $Move_Size = fixquotes($_REQUEST['Move_Size']); $comment = fixquotes($_REQUEST['comment']); $dater = strtotime("now"); $sql = " INSERT INTO leads ( homePhone, workPhone, firstName, lastName, email, origQuotes, contactPref, contactTime, From_City, To_City, From_State, To_State, From_Zip, To_Zip, Move_Date, Move_Size, comment, dater ) VALUES( '$phone','$phone2','$name','$Last_Name','$email','$How_Quotes', '$contactPref', '$contactTime', '$From_City', '$To_City', '$From_State', '$To_State', '$From_Zip', '$To_Zip', '$Move_Date', '$Move_Size', '$comment', '$dater' )"; $rs = mysql_query($sql); $MSG = 'Free Quote:<br>'; $MSG .= (isset($_POST['name']))? 'Name = '.$_POST['name']."<br>" : ''; $MSG .= (isset($_POST['Last_Name']))? 'Last Name = '.$_POST['Last_Name']."<br>" : ''; $MSG .= (isset($_POST['phone']))? 'Home Phone = <span dir=ltr>'.$_POST['phone']."</span><br>" : ''; $MSG .= (isset($_POST['phone2']))? 'Work Phone = <span dir=ltr>'.$_POST['phone2']."</span><br>" : ''; $MSG .= (isset($_POST['email']))? 'Email = <span dir=ltr>'.$_POST['email']."</span><br>" : ''; $MSG .= 'Contact Preference = <span dir=ltr>'.$_POST['Contact_Preference']."</span><br>"; $MSG .= 'Contact Time = <span dir=ltr>'.$_POST['Contact_Time']."</span><br>"; $MSG .= 'How many quotes = <span dir=ltr>'.$_POST['How_Quotes']."</span><br>"; $MSG .= 'From City = <span dir=ltr>'.$_POST['From_City']."</span><br>"; $MSG .= 'To City = <span dir=ltr>'.$_POST['To_City']."</span><br>"; $MSG .= 'From State = <span dir=ltr>'.$_POST['From_State']."</span><br>"; $MSG .= 'To State = <span dir=ltr>'.$_POST['To_State']."</span><br>"; $MSG .= 'From Zip = <span dir=ltr>'.$_POST['From_Zip']."</span><br>"; $MSG .= 'To Zip = <span dir=ltr>'.$_POST['To_Zip']."</span><br>"; $MSG .= 'Move Date = <span dir=ltr>'.$_POST['MoveMonth']."/".$_POST['MoveDay']."/".$_POST['MoveYear']."</span><br>"; $MSG .= 'Move Size = <span dir=ltr>'.$_POST['Move_Size']."</span><br>"; $MSG .= (isset($_POST['comment']))? 'Comments = '.nl2br($_POST['comment'])."<br>" : ''; $MSG = "<div>$MSG</div>"; $headers = "MIME-Version: 1.0\n"; $headers .= "Content-type: text/html; charset=windows-1255\n"; $headers .= "From: Movers Community <info@moverscommunity.com>\n"; $subject = "From Website: ".$_SERVER['REMOTE_ADDR']; $st = mail(' ', $subject, $MSG, $headers); /*echo $sql; echo "<br>"; die($MSG);*/ header('location: thanks.php'); exit(); } ?>
  7. i have a simple html registration form i am trying to submit the collected data as xml please let me know can i do this. this is my send.php please advise <? include_once "connect.php"; include_once "functions.php"; if (isset($_POST['name']) && !isset($_POST['freequote'])) { $MSG = 'Contact Us:<br>'; $MSG .= (isset($_POST['name']))? 'Name = '.$_POST['name']."<br>" : ''; $MSG .= (isset($_POST['phone']))? 'Phone = <span dir=ltr>'.$_POST['phone']."</span><br>" : ''; $MSG .= (isset($_POST['email']))? 'Email = <span dir=ltr>'.$_POST['email']."</span><br>" : ''; $MSG .= (isset($_POST['comment']))? 'Comments = '.nl2br($_POST['comment'])."<br>" : ''; $MSG = "<div>$MSG</div>"; $headers = "MIME-Version: 1.0\n"; $headers .= "Content-type: text/html; charset=windows-1255\n"; $headers .= "From: Movers Community <info@moverscommunity.com>\n"; $subject = "From Website: ".$_SERVER['REMOTE_ADDR']; $st = mail('avidanbanks@gmail.com ', $subject, $MSG, $headers); header('location: thanks.php'); exit(); } if (isset($_POST['freequote'])) { $phone = fixquotes($_REQUEST['phone']); $phone2 = fixquotes($_REQUEST['phone2']); $name = fixquotes($_REQUEST['name']); $Last_Name = fixquotes($_REQUEST['Last_Name']); $email = fixquotes($_REQUEST['email']); $How_Quotes = intval($_REQUEST['How_Quotes']); $contactTime = fixquotes($_REQUEST['Contact_Time']); $contactPref = fixquotes($_REQUEST['Contact_Preference']); $From_City = fixquotes($_REQUEST['From_City']); $To_City = fixquotes($_REQUEST['To_City']); $From_State = fixquotes($_REQUEST['From_State']); $To_State = fixquotes($_REQUEST['To_State']); $From_Zip = fixquotes($_REQUEST['From_Zip']); $To_Zip = fixquotes($_REQUEST['To_Zip']); $Move_Date = strtotime($_REQUEST['MoveMonth']."/".$_REQUEST['MoveDay']."/".$_REQUEST['MoveYear']); $Move_Size = fixquotes($_REQUEST['Move_Size']); $comment = fixquotes($_REQUEST['comment']); $dater = strtotime("now"); $sql = " INSERT INTO leads ( homePhone, workPhone, firstName, lastName, email, origQuotes, contactPref, contactTime, From_City, To_City, From_State, To_State, From_Zip, To_Zip, Move_Date, Move_Size, comment, dater ) VALUES( '$phone','$phone2','$name','$Last_Name','$email','$How_Quotes', '$contactPref', '$contactTime', '$From_City', '$To_City', '$From_State', '$To_State', '$From_Zip', '$To_Zip', '$Move_Date', '$Move_Size', '$comment', '$dater' )"; $rs = mysql_query($sql); $MSG = 'Free Quote:<br>'; $MSG .= (isset($_POST['name']))? 'Name = '.$_POST['name']."<br>" : ''; $MSG .= (isset($_POST['Last_Name']))? 'Last Name = '.$_POST['Last_Name']."<br>" : ''; $MSG .= (isset($_POST['phone']))? 'Home Phone = <span dir=ltr>'.$_POST['phone']."</span><br>" : ''; $MSG .= (isset($_POST['phone2']))? 'Work Phone = <span dir=ltr>'.$_POST['phone2']."</span><br>" : ''; $MSG .= (isset($_POST['email']))? 'Email = <span dir=ltr>'.$_POST['email']."</span><br>" : ''; $MSG .= 'Contact Preference = <span dir=ltr>'.$_POST['Contact_Preference']."</span><br>"; $MSG .= 'Contact Time = <span dir=ltr>'.$_POST['Contact_Time']."</span><br>"; $MSG .= 'How many quotes = <span dir=ltr>'.$_POST['How_Quotes']."</span><br>"; $MSG .= 'From City = <span dir=ltr>'.$_POST['From_City']."</span><br>"; $MSG .= 'To City = <span dir=ltr>'.$_POST['To_City']."</span><br>"; $MSG .= 'From State = <span dir=ltr>'.$_POST['From_State']."</span><br>"; $MSG .= 'To State = <span dir=ltr>'.$_POST['To_State']."</span><br>"; $MSG .= 'From Zip = <span dir=ltr>'.$_POST['From_Zip']."</span><br>"; $MSG .= 'To Zip = <span dir=ltr>'.$_POST['To_Zip']."</span><br>"; $MSG .= 'Move Date = <span dir=ltr>'.$_POST['MoveMonth']."/".$_POST['MoveDay']."/".$_POST['MoveYear']."</span><br>"; $MSG .= 'Move Size = <span dir=ltr>'.$_POST['Move_Size']."</span><br>"; $MSG .= (isset($_POST['comment']))? 'Comments = '.nl2br($_POST['comment'])."<br>" : ''; $MSG = "<div>$MSG</div>"; $headers = "MIME-Version: 1.0\n"; $headers .= "Content-type: text/html; charset=windows-1255\n"; $headers .= "From: Movers Community <info@moverscommunity.com>\n"; $subject = "From Website: ".$_SERVER['REMOTE_ADDR']; $st = mail('avidanbanks@gmail.com ', $subject, $MSG, $headers); /*echo $sql; echo "<br>"; die($MSG);*/ header('location: thanks.php'); exit(); } ?>
  8. abanksob1

    change to xml

    hi i have an online form in php to send in html and i need to change it, to send as a xml file please help. <? include_once "connect.php"; include_once "../functions.php"; if (!$compid) { header("Location: login.php"); exit("Not logged in"); } $ids = array(); $rs = mysql_query("SELECT id FROM leads WHERE origQuotes>$minOrigQuotes AND origQuotes>fetchedQuotes") or die(mysql_error()); while (list($id) = mysql_fetch_array($rs)) { if (!empty($_REQUEST["cb$id"])) { $ids[] = $id; } } if (count($ids)) { $ids = "(id=".implode(" OR id=", $ids).")"; $rs = mysql_query("SELECT leftLeads FROM companies WHERE id=$compid") or die(mysql_error()); list($limit) = mysql_fetch_array($rs); } else $limit=$ids=0; include "header.php"; $rs = mysql_query("SELECT email FROM companies WHERE id=$compid") or die(mysql_error()); list($compEmail) = mysql_fetch_array($rs); $rs = mysql_query("SELECT * FROM leads WHERE $ids LIMIT $limit"); $ok=0; while ($row = mysql_fetch_row($rs)) { for ($x = 0; $x < mysql_num_fields($rs); $x++) { $a=mysql_fetch_field($rs, $x); ${$a->name} = trim(stripslashes($row[$x])); } $MSG = "Name = $firstName $lastName<br>"; $MSG .= "Home Phone = $homePhone<br>"; $MSG .= "Work Phone = $workPhone<br>"; $MSG .= "Email = $email<br>"; $MSG .= "Move Date = ".date("m/d/Y", $Move_Date)."<br>"; $MSG .= "Move Size = $Move_Size<br>"; $MSG .= "From City = $From_City<br>"; $MSG .= "From State = $From_State<br>"; $MSG .= "From Zip = $From_Zip<br>"; $MSG .= "To City = $To_City<br>"; $MSG .= "To State = $To_State<br>"; $MSG .= "To Zip = $To_Zip<br>"; $MSG .= "Contact Preference = $contactPref<br>"; $MSG .= "Contact Time = $contactTime<br>"; $MSG .= "Comments = ".nl2br($comment)."<br>"; $MSG = "<div>$MSG</div>"; $headers = "MIME-Version: 1.0\n"; $headers .= "Content-type: text/html; charset=iso-8859-1\n"; $headers .= "From: Movers Community <info@moverscommunity.com>\n"; $subject = "Lead From Movers Community"; $st = mail($compEmail, $subject, $MSG, $headers); echo ($st) ? "Lead #$id sent.<br>" : "Lead #$id couldn't be sent.<br>"; flush(); if ($st) { $ok++; mysql_query("UPDATE companies SET leftLeads=leftLeads-1, totalLeadsUsed=totalLeadsUsed+1 WHERE id=$compid") or die(mysql_error()); } //echo "$MSG<BR><BR><BR>"; //die($MSG); //header('location: thanks.php'); //exit(); } echo "<br><br><center><big><b>"; echo "<span style='color:red'>$ok</span> leads were sent to $compEmail<br>"; echo "</b></big></center>"; include "footer.php"; ?>
  9. hi i went on line and found a code for a java scrip pop up page gray out how ever i want this scrip to automatic comes up after five seconds what code do i need to change below for this to happen currently it come up only is people click the shaw button please advise function showPopUp(el) { var cvr = document.getElementById("cover") var dlg = document.getElementById(el) cvr.style.display = "block" dlg.style.display = "block" if (document.body.style.overflow = "hidden") { cvr.style.width = "1024" cvr.style.height = "100%" } } function closePopUp(el) { var cvr = document.getElementById("cover") var dlg = document.getElementById(el) cvr.style.display = "none" dlg.style.display = "none" document.body.style.overflowY = "scroll" } #cover { display:none; position:absolute; left:0px; top:0px; width:100%; height:100%; background:gray; filter:alpha(Opacity=50); opacity:0.5; -moz-opacity:0.5; -khtml-opacity:0.5 } #dialog { display:none; left:300px; top:150px; width:380px; height:350px; position:absolute; z-index:100; background:#00CCFF; padding:2px; font:10pt tahoma; border:1px solid gray } .style2 { color: #000066; font-weight: bold; } Free Quick Moving Quote [Close] Show
  10. hi i went online and i was looking for a pop up that grays out i found this code below and added what i need now i need that this pop up automatically pop up when visitors go on my home page after a few seconds it will be best what part of the code i need to change in order for this to work . Free Quick Moving Quote [Close] Show please advise
  11. HI how do i collect people who fill out form ip address so i can control spam . i am currently is using php form to contact me how ever i want to also add there unique ip address when the form is sent to be here is my file contact.php Contact Us Name: * Phone: * Email: * Your comments: * and here is my send.php <? if (isset($_POST['name']) && !isset($_POST['freequote'])) { $MSG = 'Contact Us: '; $MSG .= (isset($_POST['name']))? 'Name = '.$_POST['name']." " : ''; $MSG .= (isset($_POST['phone']))? 'Phone = '.$_POST['phone']." " : ''; $MSG .= (isset($_POST['email']))? 'Email = '.$_POST['email']." " : ''; $MSG .= (isset($_POST['comment']))? 'Comments = '.nl2br($_POST['comment'])." " : ''; $MSG = " $MSG"; $headers = "MIME-Version: 1.0\n"; $headers .= "Content-type: text/html; charset=windows-1255\n"; $headers .= "From: Movers Community \n"; $st = mail('avidanbanks@gmail.com moversleads@gmail.com', 'From website', $MSG, $headers); header('location: thanks.php'); exit(); were do i put a code to collect the person unique ip address and send it to me so i can see who is on my site ? please advise
  12. here is a link http://moverscommunity.com/login.php the file is already uploaded on the web
  13. hi what code do i need to change if i want users who logged in invalid information to be redirected to another page instead of the original log in page. <? include_once "connect.php"; include_once "functions.php"; if (isset ( $_GET ["logout"] )) { $_SESSION ['user'] = 0; $msg = "Logged Out"; header('location: index.php'); exit(); } if ($userid) { $msg = "Already Logged"; header('location: members.php'); exit(); } elseif (isset ( $_POST ["password"] ) && isset ( $_POST ["email"] )) { $inEmail = fixquotes ( $_POST ["email"] ); $inPassword = fixquotes ( $_POST ["password"] ); $rs = mysql_query ( "SELECT id FROM users AS u WHERE email='$inEmail' AND password='$inPassword'" ) or die ( mysql_error () ); if (mysql_num_rows ( $rs )) { list($userid) = mysql_fetch_array ( $rs ); $_SESSION ['user'] = $userid; $msg = "Logged in"; header('location: members.php'); exit(); } elseif ($_REQUEST['register']) { $inName = fixquotes($_REQUEST['name']); $street = fixquotes($_REQUEST['street']); $city = fixquotes($_REQUEST['city']); $state = fixquotes($_REQUEST['state']); $zipcode = fixquotes($_REQUEST['zipcode']); $website = fixquotes($_REQUEST['website']); $firstName = fixquotes($_REQUEST['firstName']); $lastName = fixquotes($_REQUEST['lastName']); $workPhone = fixquotes($_REQUEST['workPhone']); $cellPhone = fixquotes($_REQUEST['cellPhone']); $fax = fixquotes($_REQUEST['fax']); $dot = fixquotes($_REQUEST['dot']); $mc = fixquotes($_REQUEST['mc']); $trucks = intval($_REQUEST['trucks']); $website = "http://".str_replace("http://", "", $website); if (!$inName || !$inEmail || !$inPassword || !checkEmail($inEmail) || !$state || !$firstName || !$workPhone || !$dot) { $msg = "Invalid Registery Details"; } else { mysql_query("INSERT INTO users (name, email, password, street, city, state, zipcode, website, firstName, lastName, workPhone, cellPhone, fax, dot, mc, trucks) VALUES('$inName', '$inEmail', '$inPassword', '$street', '$city', '$state', '$zipcode', '$website', '$firstName', '$lastName', '$workPhone', '$cellPhone', '$fax', '$dot', '$mc', '$trucks')") or die(mysql_error()); $rs = mysql_query ( "SELECT id FROM users AS u WHERE email='$inEmail' AND password='$inPassword'" ) or die ( mysql_error () ); list($userid) = mysql_fetch_array ( $rs ); if ($userid) { $_SESSION ['user'] = $userid; $msg = "Registered Successfully"; $headers = "MIME-Version: 1.0\n"; $headers .= "Content-type: text/html; charset=windows-1255\n"; $headers .= "From: Movers Community \n"; $MSG = " Thank you for registering to MoversCommunity.com These are your user details: Company Name: $inName, Contact Email: $inEmail, Password: $inPassword, Street: $street, City: $city, State: $state, Zipcode: $zipcode, Website: $website, Contact First Name: $firstName, Contact Last Name: $lastName, Work Phone: $workPhone, Cell Phone: $cellPhone, Fax: $fax, DOT#: $dot, MC#: $mc, # of Trucks: $trucks "; mail($inEmail, "Registered Successfully", $MSG, $headers); } else { $msg = "Invalid Registery Details"; } } } else { $_SESSION ['user'] = 0; $msg = "Invalid Login Details"; } } include "header.php"; ?> Login / Register <? if (!empty($msg)) { echo " $msg"; if ($_SESSION['user']!=0) {//logged include "footer.php"; exit(); } } ?> LOGIN Email: Password: OR REGISTER width="544" style='border:1px solid #2165a5;background:#eeeeee'> CompanyInformation * Required Fields Company Name * Street City State* -Select State- <?getOptions(array_keys($states),$_POST['state']);?> Zip Code Website style='color:white'>Contact Information Contact First Name* name="firstName" value='<?=$_POST['firstName']?>'> Contact Last Name name="lastName" value='<?=$_POST['lastName']?>'> Contact Work Phone* name="workPhone" value='<?=$_POST['workPhone']?>'> Contact Cell Phone name="cellPhone" value='<?=$_POST['cellPhone']?>'> Contact Fax Number Contact E-mail* name="email" value='<?=$_POST['email']?>'> Required Password* name="password" value='<?=$_POST['password']?>'> style='color:white'>Truck Information DOT Number* name="dot" value='<?=$_POST['dot']?>'> MC Number name="mc" value='<?=$_POST['mc']?>'> Number of Trucks -Select- <? $trackArr = array(); for ($i=1; $i<=25; ++$i) $trackArr[] = $i; getOptions(array_keys($trackArr), $_POST['trucks']); ?> type="submit"> <? include "footer.php";?>
  14. style='height:100%;border-right:2px solid #999999;border-left:2px solid #999999'> src="freightliner-trucks-classic-pg1.jpg" alt="" style="width: 100%; height: 221px;" width=100%> Home About Us Contact Us Benefits Login/Register Links Login / Register LOGIN Email: Password: OR REGISTER width="544" style='border:1px solid #2165a5;background:#eeeeee'> CompanyInformation * Required Fields Company Name * Street City State* -Select State- ALAKAZARCACOCTDEDCFLGAHAIDILINIAKSKYLAMEMDMAMIMNMSMOMTNENVNHNJNMNYNCNDOHOKORPARISCSDTNTXUTVTVAWAWVWIWY Zip Code Website style='color:white'>Contact Information Contact First Name* name="firstName" value=''> Contact Last Name name="lastName" value=''> Contact Work Phone* name="workPhone" value=''> Contact Cell Phone name="cellPhone" value=''> Contact Fax Number Contact E-mail* name="email" value=''> Required Password* name="password" value=''> style='color:white'>Truck Information DOT Number* name="dot" value=''> MC Number name="mc" value=''> Number of Trucks -Select- 0123456789101112131415161718192021222324 type="submit"> Contact Us Benefits About us Privacy Policy ©2009 Movers Community All Rights Reserved
×
×
  • Create New...