testservers Posted March 17, 2011 Share Posted March 17, 2011 Hello, I'm trying to get the shipping quote from YRC YRC http://www.yrc.com/e_commerce/hyperlinks.html#quote to work on my web site, but every time I submit the form, it doesn't show any quotes, but if I hit the"Back" button on the web site to go back to the page to get the quote and put in the same data, it displays the rate. Test form page: YRC Test Shipping Module http://testing-servers.com/yrc-shipping-link-form.php Code I'm using: Code: <table width="200" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td><form id="form1" name="form1" method="post" action="https://my.yrc.com/dynamic/national/servlet?CONTROLLER=com.rdwy.ec.rexcommon.proxy.http.controller.PublicProxyController&redir=/tfq504"> <p> <input name="O_CITY" type="hidden" id="O_CITY" value="Columbus" /> <input name="O_STATE" type="hidden" id="O_STATE" value="MS" /> <input name="O_ZIP" type="hidden" id="O_ZIP" value="39703" /> <input name="O_CTRY" type="hidden" id="O_CTRY" value="USA" /> <input name="D_CTRY" type="hidden" id="D_CTRY" value="USA" /> <input name="WGT1" type="hidden" id="WGT1" value="200" /> <input name="CLASS1" type="hidden" id="CLASS1" value="50" /> <input name="CURRENCY" type="hidden" id="CURRENCY" value="USD" /> <input name="DISPLAY2" type="hidden" id="DISPLAY2" value="PAGE" /> </p> <p><label></label> <label for="textfield">City</label> <input type="text" name="D_CITY" id="D_CITY" /> </p> <p> <label for="label">State</label> <input name="D_STATE" type="text" id="label" size="10" maxlength="2" /> </p> <p> <label for="label2">Zip Code</label> <input type="text" name="D_ZIP" id="label2" /> </p> <p> <label for="textfield">PU Date</label> <input type="text" name="PU_DATE" id="PU_DATE" /> </p> <p> <label for="Submit">Submit</label> <input type="submit" name="DISPLAY" value="Submit" id="DISPLAY" /> </p> </form> <p> </p> <p> </p></td> </tr> </table> Any help appreciated! Thanks Kevin Quote Link to comment https://forums.phpfreaks.com/topic/230936-i-need-help-with-yrc-shipping-quote-form/ Share on other sites More sharing options...
testservers Posted April 3, 2011 Author Share Posted April 3, 2011 Problem Solved! I was missing the field DISPLAY=PAGE That is what makes the quotes show on the page. Quote Link to comment https://forums.phpfreaks.com/topic/230936-i-need-help-with-yrc-shipping-quote-form/#findComment-1196180 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.