Web Design Forum  
 
Go Back   Web Design Forum > Web Software > Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 07-01-2005, 09:57 PM   #1 (permalink)
New Member
 
Join Date: Jun 2005
Posts: 5
Default Random X and Y Variables popping up

I am creating a shopping cart with PHP, and I built a form using the GET method. When I submit the form, two variables show up in the URL. One x variable and one y variable, and their values are just random numbers that change every time I submit the form. I have ABSOLUTELY no idea what is going on here... has anybody ever heard of something like this? I'm stumped.
visionofdesign is offline   Reply With Quote
Old 07-02-2005, 04:02 AM   #2 (permalink)
Opera/Firefox on Debian
 
Join Date: Aug 2004
Location: Sydney, Australia
Posts: 141
Default

What are the fields in your form? Maybe you could include a link (or the code for the form) here...

Any javascript on the page that submits the form?
__________________
DVDRelease.com - Digital-Camera.org
[tab] is offline   Reply With Quote
Old 07-05-2005, 08:03 PM   #3 (permalink)
New Member
 
Join Date: Jun 2005
Posts: 5
Default

This is the code...

<form method="GET" action="cart_processor.php">
<table border="0" cellspacing="1" cellpadding="0" class="carttable">
<tr class="carttableheader">
<td><b>Remove</b></td>
<td><b>Product Name</b></td>
<td><b>Description</b></td>
<td><b>Qty</b></td>

<td><b>Price</b></td>
<td><b>Extended</b></td>
</tr>
<tr class="row0">
<td><input type="checkbox" name="DRSB_remove" value="1"></td>
<td>Sobe Generic</td>
<td>Sobe Drink</td>

<td><input type="text" name="DRSB_qty" value="1" size="1" maxlength="2" /></td>
<td align="right">2.15</td>
<td align="right">2.15</td>
</tr>
<tr class="row1">
<td><input type="checkbox" name="MT98_remove" value="1"></td>
<td>Monkey Tongue</td>

<td>This is a monkey tongue with bumps on it.</td>
<td><input type="text" name="MT98_qty" value="1" size="1" maxlength="2" /></td>
<td align="right">545.99</td>
<td align="right">545.99</td>
</tr>
<tr class="row0">
<td><input type="checkbox" name="PHSSP777_remove" value="1"></td>

<td>Samsung p777</td>
<td>Samsung p777 Camera Flip Phone with MP3 player.</td>
<td><input type="text" name="PHSSP777_qty" value="1" size="1" maxlength="2" /></td>
<td align="right">10.00</td>
<td align="right">10.00</td>
</tr>
<tr class="carttablepricing">

<td colspan="4" rowspan="4" align="center">This could be some information.</td>
<td align="right"><b>subtotal</b></td>
<td align="right">558.14</td>
</tr>
<tr class="carttablepricing">
<td align="right"><b>Tax</b></td>
<td align="right">40.47</td>

</tr>
<tr class="carttablepricing">
<td align="right"><b>Shipping</b></td>
<td align="right">4.00</td>
</tr>
<tr class="carttablepricing">
<td align="right"><b>Total</b></td>

<td align="right">602.61</td>
</tr>
<tr class="carttablefooter">
<td colspan="6">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>
<td align="right"><a href="/shoppingcart/add.php?action=destroycart"><img src="images/emptycart.jpg" border="0"></a></td>
<td align="right"><input type="hidden" name="action" value="updatecart"><input type="image" src="images/updatecart.jpg"></form></td>

<td align="right"><a href="index.php"><img src="images/shopmore.jpg" border="0"></a></td>
<td align="right">
<form method="post" action="checkout.php">
<input type="image" src="images/order.jpg"></td>
</form></td>
</tr>
</table>
</td>
</tr>

</table>
visionofdesign is offline   Reply With Quote
Reply

Thread Tools
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

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


All times are GMT. The time now is 12:28 PM.


Computer Forum - Internet Business - Webpage Design

 
Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.