Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more

Go Back   Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more > Web Programming > PHP Development
User Name
Password

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 05-17-2006, 02:15 AM   #1 (permalink)
zygfryd5
Junior Member
 
Join Date: May 2006
Posts: 3
Default form working on Firefox, but not on IE

Hi everybody !

I'm new to this forum so please forvive if this is not the right place to post my problem. I developped the below code from NTK software and added some php coding so that it takes the data from the database. The form works pefectly referring to paypal.com from Firefox, but from IE it doesn't work at all. No idea how come... there must be a conflict somewhere in the form definition, probably at onSubmit, because the form basically doesn't want to submit on IE.

Thanks for any help :-)

<form name="pp1"
action="https://www.paypal.com/cgi-bin/webscr"
target="paypal"
method="post" onSubmit="return SubmitItem(this);">

<font style="font-family: Verdana; font-size: 12px;">
<br>
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="add" value="1">
<input type="hidden" name="business" value="me@me.com">
<input type="hidden" name="item_number" value="<? print $name; ?>">
<input type="hidden" name="item_name" value="<? print $codedis; ?>">
<input type="hidden" name="id" value="1">
<input type="hidden" name="amount" value="<? print $fiftyg; ?>">
<input type="hidden" name="amount_base" value="<? print $fiftyg; ?>">

<input type="hidden" name="or0" value="0">
Grams: <select name="os0" onchange="UpdatePrice(this.form);">
<option value="None">Please select</option><option value="50g=0">50g</option>
<option value="100g=<? $onehundredg_true = $onehundredg - $fiftyg; print $onehundredg_true; ?>">100g</option>
<option value="200g=<? $twohundredg_true = $twohundredg - $fiftyg; print $twohundredg_true; ?>">200g</option>
<option value="500g=<? $fivehundredg_true = $fivehundredg - $fiftyg; print $fivehundredg_true; ?>">500g</option>
</select>
<p>
<div id="div_amount_1"><b>Price: </b></div><br>
<input type="hidden" name="undefined_quantity" value="1">
<input type="hidden" name="on0" value="Grams">
<input type="hidden" name="shipping" value="5">
<input type="hidden" name="shipping2" value="7.5">
<input type="hidden" name="currency_code" value="CAD">
<input type="hidden" name="cs" value="0">
<input type="hidden" name="no_note" value="0">
<input type="hidden" name="no_shipping" value="0">
<input type="hidden" name="paymentaction" value="authorization">
<input type="image" src="images/cart.gif" border="0" name="submit" alt="Make Payment with Paypal">
</font>

</form>
<script language="JavaScript">
<!--
UpdatePrice(document.pp1); // initialize option price
//-->
</script>
zygfryd5 is offline   Reply With Quote
Sponsored Links
Old 05-17-2006, 03:15 AM   #2 (permalink)
etono
Moderator
 
Join Date: May 2006
Posts: 86
Default Re: form working on Firefox, but not on IE

Not sure, but I would think the JavaScript may be suspect. Try just submitting the form without the javascript to see if it works first, then add the javascript after.

Code:
<form name="pp1" action="https://www.paypal.com/cgi-bin/webscr" method="post"> <input type="hidden" name="cmd" value="_cart"> <input type="hidden" name="add" value="1"> <input type="hidden" name="business" value="me@me.com"> <input type="hidden" name="item_number" value="<? print $name; ?>"> <input type="hidden" name="item_name" value="<? print $codedis; ?>"> <input type="hidden" name="id" value="1"> <input type="hidden" name="amount" value="<? print $fiftyg; ?>"> <input type="hidden" name="amount_base" value="<? print $fiftyg; ?>"> <input type="hidden" name="or0" value="0"> Grams:<br /> <select name="os0"> <option value="None">Please select</option> <option value="50g=0">50g</option> <option value="100g=<? $onehundredg_true = $onehundredg - $fiftyg; print $onehundredg_true; ?>">100g</option> <option value="200g=<? $twohundredg_true = $twohundredg - $fiftyg; print $twohundredg_true; ?>">200g</option> <option value="500g=<? $fivehundredg_true = $fivehundredg - $fiftyg; print $fivehundredg_true; ?>">500g</option> </select> Price:<br /> <input type="hidden" name="undefined_quantity" value="1"> <input type="hidden" name="on0" value="Grams"> <input type="hidden" name="shipping" value="5"> <input type="hidden" name="shipping2" value="7.5"> <input type="hidden" name="currency_code" value="CAD"> <input type="hidden" name="cs" value="0"> <input type="hidden" name="no_note" value="0"> <input type="hidden" name="no_shipping" value="0"> <input type="hidden" name="paymentaction" value="authorization"> <input type="image" src="images/cart.gif" border="0" name="submit" alt="Make Payment with Paypal"> </form>
__________________
Jeremy Moseley
My Links: Design Related Blog | Personal Website | Portfolio
etono is offline   Reply With Quote
Old 05-17-2006, 03:25 AM   #3 (permalink)
zygfryd5
Junior Member
 
Join Date: May 2006
Posts: 3
Default Re: form working on Firefox, but not on IE

Thanks, tried doing so but didn't help...
zygfryd5 is offline   Reply With Quote
Old 05-17-2006, 03:29 AM   #4 (permalink)
etono
Moderator
 
Join Date: May 2006
Posts: 86
Default Re: form working on Firefox, but not on IE

Maybe it is something to do with the submit image. Try changing this:
Code:
<input type="image" src="images/cart.gif" border="0" name="submit" alt="Make Payment with Paypal">

To this:
Code:
<input type="submit" value="Make Payment with PayPal" />
__________________
Jeremy Moseley
My Links: Design Related Blog | Personal Website | Portfolio
etono is offline   Reply With Quote
Old 05-17-2006, 07:12 AM   #5 (permalink)
Dion
Junior Member
 
Join Date: May 2006
Posts: 10
Default Re: form working on Firefox, but not on IE

I guess Etono is right, IE is kinda a bitch with the submit images
Dion is offline   Reply With Quote
Old 05-17-2006, 10:19 PM   #6 (permalink)
zygfryd5
Junior Member
 
Join Date: May 2006
Posts: 3
Default Re: form working on Firefox, but not on IE

Doesn't work either
zygfryd5 is offline   Reply With Quote
Old 05-17-2006, 10:21 PM   #7 (permalink)
etono
Moderator
 
Join Date: May 2006
Posts: 86
Default Re: form working on Firefox, but not on IE

do you have a link to the actual form?
__________________
Jeremy Moseley
My Links: Design Related Blog | Personal Website | Portfolio
etono is offline   Reply With Quote
Old 05-24-2006, 04:35 PM   #8 (permalink)
wilmec
Junior Member
 
Join Date: May 2006
Posts: 1
Default Re: form working on Firefox, but not on IE

all the <? print tags you have i get problems with them on a windows server using ie6 but find <?= $foo;?> works on most.
wilmec is offline   Reply With Quote
Old 05-26-2006, 04:39 PM   #9 (permalink)
etono
Moderator
 
Join Date: May 2006
Posts: 86
Default Re: form working on Firefox, but not on IE

I believe that <?= $foo; ?> uses echo. I had been using the shorthand for a while, but read on Zend's site (I think) <?php echo $foo; ?> is preferred.
__________________
Jeremy Moseley
My Links: Design Related Blog | Personal Website | Portfolio
etono is offline   Reply With Quote
Old 06-22-2006, 07:49 AM   #10 (permalink)
humair
Junior Member
 
Join Date: Jun 2006
Posts: 3
Default Re: form working on Firefox, but not on IE

is'nt there a possibilitie that this error is occuring from paypal?
__________________
http://www.exportersus.com/<- Products and Services
http://www.psocl.com
humair is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Points Per Thread View: 1.00
Points Per Thread: 11.00
Points Per Reply: 5.00



» Sponsors

» Links

» Affiliates
Web Hosting
Online Backup Reviews
Marketing Find
Merchant Select
SiteMap Builder
Host Compare
Dedicated Servers

» Links

» Sports Network
Paintball Forum
Football Forum
Hockey Forum
Golf Forum
Boxing Forum
Lacrosse Forum
Baseball Forum
SnowBoarding Forum
Soccer Forum
MMA Forum


All times are GMT -4. The time now is 07:29 PM.



LinkBacks Enabled by vBSEO 3.0.0 RC8
Webmaster Forums