randydg Posted December 16, 2008 Share Posted December 16, 2008 hI, Not sure if this belongs under php or html, but I need help to somehow recode att dsl prequal script to list addresses that can get it instead of searching by each addresses. the following code looks up to see if 1 address can get att dsl, but It needs to be set to list addresses by city or street that can get it. such as: Example road: 123 example rd yes 124 example rd yes 125 example rd no something like that If possible. Any help would be nice, and save my fingers from having to go up and down every street and address in every city that my boss wants me to do. thanks, Randy code: <form id='prequal_form' onkeydown='hotKey(event)' action='https://orders.value.net/DSL/Default.aspx' method='post' enctype='multipart/form-data'> <table cellpadding='2' cellspacing='0' border='0' id='Prequal'> <tr> <td colspan='2' style='font-size:85%;padding-left:0px;color:#001C79;'> <input type='checkbox' onclick='dryDSL()' id='isDryDSL' name='isDryDSL' /> <b>Check Address Only</b> </td></tr> <tr id='phoneInfo' style='display:;'> <td colspan='2' align='left'><span id='phoneVal' style='display:none;font-size:90%;'> <b style='color:red;'>*Invalid: 123-123-1234</b> </span><b>Phone Number:</b><br /> <input type='text' id='phone' name='phone' style='width: 130px' /> </td></tr> <tr id='phoneText' style='display:none;font-size:85%;font-style:italic;'> <td colspan='2' align='left' style='padding-top:0px;padding-left:4px;'> <div style='width:130px;'>*This option is not avaible with our service</div> </td></tr><tr> <td colspan='2' align='left'><span id='addrReq' style='display:none;font-size:90%;'> <b style='color:red;'>*Required</b></span> <b>Address:</b><br /><input type='text' id='address' name='address' style='width: 130px' /> </td></tr><tr> <td colspan='2' align='left'><span id='unitReq' style='display:none;font-size:90%;'> <b style='color:red;'>*Required</b></span><strong>Unit Type and #:</strong><br /> <select name='unit_type' id='unit_type'> <option value=''></option><option selected='selected' value='None'>None</option> <option value='APT'>Apartment</option><option value='BLDG'>Building</option> <option value='FLR'>Floor</option><option value='LOT'>Lot</option><option value='RM'>Room</option> <option value='SLIP'>Slip</option><option value='SUIT'>Suite</option> <option value='TRLR'>Trailer</option><option value='UNIT'>Unit</option> <option value='WNG'>Wing</option></select> <input type='text' id='unit_number' name='unit_number' style='width:47px;.width:43px;_width:48px;' maxlength='10' /> </td></tr><tr> <td colspan='2' align='left'><span id='cityReq' style='display:none;font-size:90%;'> <b style='color:red;'>*Required</b></span><b>City:</b><br /> <input type='text' id='city' name='city' style='width: 130px' /> </td></tr><tr> <td align='left' valign='bottom' style='padding-bottom:3px;'> <span id='stateReq' style='display:none;font-size:90%;'> <b style='color:red;'>*Choose</b></span><b>State:</b><br /> <select name='state' id='state'><option value=''></option><option value='AK'>AK</option> <option value='AL'>AL</option><option value='AR'>AR</option><option value='AZ'>AZ</option> <option value='CA'>CA</option><option value='CO'>CO</option><option value='CT'>CT</option> <option value='DC'>DC</option><option value='DE'>DE</option><option value='FL'>FL</option> <option value='GA'>GA</option><option value='HI'>HI</option><option value='IA'>IA</option> <option value='ID'>ID</option><option value='IL'>IL</option><option value='IN'>IN</option> <option value='KS'>KS</option><option value='KY'>KY</option><option value='LA'>LA</option> <option value='MA'>MA</option><option value='MD'>MD</option><option value='ME'>ME</option> <option value='MI'>MI</option><option value='MN'>MN</option><option value='MO'>MO</option> <option value='MS'>MS</option><option value='MT'>MT</option><option value='NC'>NC</option> <option value='ND'>ND</option><option value='NE'>NE</option><option value='NH'>NH</option> <option value='NJ'>NJ</option><option value='NM'>NM</option><option value='NV'>NV</option> <option value='NY'>NY</option><option value='OH'>OH</option><option value='OK'>OK</option> <option value='OR'>OR</option><option value='PA'>PA</option><option value='RI'>RI</option> <option value='SC'>SC</option><option value='SD'>SD</option><option value='TN'>TN</option> <option value='TX'>TX</option><option value='UT'>UT</option><option value='VA'>VA</option> <option value='VT'>VT</option><option value='WA'>WA</option><option value='WI'>WI</option> <option value='WV'>WV</option><option value='WY'>WY</option></select></td> <td align='left' valign='bottom'><span id='zipReq' style='display:none;font-size:90%;'> <b style='color:red;'>*Required</b></span><b>Zip Code:</b><br /> <input type='text' id='zipcode' name='zipcode' style='width:75px;.width:81px;_width:84px;' maxlength='5' /> </td></tr><tr> <td style='font-size:85%;' colspan='2' align='left'><span id='locReq' style='display:none;font-size:110%;'> <b style='color:red;'>*Required</b></span><b style='font-size:115%;'>This is a:</b><br /> <input id='locationR' name='location' type='radio' value='R' />Residence <input id='locationB' value='B' name='location' type='radio' />Business </td></tr><tr> <td colspan='2'> <input type='button' onclick='showProgress()' value='Prequalify Now!' style='width: 136px' /> <input type='hidden' name='company_id' value='383iqwi9x6c%3d' /></td></tr> <tr style='display:none;position:absolute;' id='progress_row'> <td colspan='2' style='padding-top:7px;padding-right:0px;padding-left:0px;' align='center'> <b>Please Wait</b> <img name='progress_image' id='progress_image' src='blank.gif' width='65px' height='19px' align='absmiddle' alt='...' /><br /> </td></tr> </table> <script src='http://orders.value.net/Methods.js' language='javascript'></script></form> or can be seen on http://www.netdot.com/DSL/tabid/61/Default.aspx Link to comment https://forums.phpfreaks.com/topic/137230-need-help-with-a-script/ Share on other sites More sharing options...
revraz Posted December 16, 2008 Share Posted December 16, 2008 That is all HTML and JS, I have no idea what you are asking in regards to PHP. Link to comment https://forums.phpfreaks.com/topic/137230-need-help-with-a-script/#findComment-716992 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.