ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Whats wrong? (https://www.excelbanter.com/excel-programming/304079-whats-wrong.html)

Lee

Whats wrong?
 
Can anyone tell me what is wrong with the following piece of coding:

bytPostData = "state=transaction_view&section=Ecard&SelectCard=S CECARD"

bytPostData = StrConv(bytPostData, vbFromUnicode)

sURL = "https://new.egg.com/customer/0,,3_11062--View_138,00.html"

sHeader = "Content-Type: " & "application/x-www-form-urlencoded "
& vbCrLf

ie.Navigate sURL, 0, "", bytPostData, sHeader



The form from the web is below:

<form name='form0' method=post
action='/customer/0,,3_11062--View_138,00.html' style='margin:0;'

<input type=hidden name='state' value='transaction_view'
<input type=hidden name='section' value='Ecard'
<input type=hidden name='SelectCard' value='SCECARD'
<input type=image src=/com.egg/images/NewCTAs/cta_view_40x11.gif
width=40 height=11 border=0 alt='view'

</form

Thanks


All times are GMT +1. The time now is 06:40 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com