L
Lee
Can anyone tell me what is wrong with the following piece of coding:
bytPostData = "state=transaction_view§ion=Ecard&SelectCard=SCECARD"
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
bytPostData = "state=transaction_view§ion=Ecard&SelectCard=SCECARD"
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