close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Error in my PHP?

Thread began 7/10/2009 6:56 am by jenbar3378469 | Last modified 7/10/2009 10:35 am by anonymous | 1561 views | 2 replies |

jenbar3378469

Error in my PHP?

Hi,

Your technical support helped me build this php code, but whenever the page tries to load, it just sits there and will not load. Can you look at these snippets of code and see if you can find the error because I have been unable to.

<?php if (isset($_POST["sumidrive1_1_ATC"]) || isset($_POST["sumidrive1_1_ATC_x"]) && $_POST["sumidrive1_1_Quantity_Add"] < $row_rsAstero['itemQty']){ ?>


}else{
header("Location: " . $_SERVER['PHP_SELF'] . "?available=" . $row_rsAstero['itemQty']);
}
?>
<?php


<td align="center" valign="top"><font color="red">Max Order Quantity of 25</font><?php if(isset($_GET['available'])){ ?>The quantity specified is not available for this product, the available quantity is: <?php echo $row_rsAstero['itemQty'] ?><?php } ?></td>


<td colspan="2" align="center" valign="top">
<form name="sumidrive1_3_ATC_<?php echo $row_rsCyclo6000["itemId"]; ?>" method="POST" action="<?php echo $_SERVER["PHP_SELF"]; ?><?php echo (isset($_SERVER["QUERY_STRING"]) && $_SERVER["QUERY_STRING"] != "")?"?".$_SERVER["QUERY_STRING"]:""; ?>">
<input type="hidden" name="sumidrive1_3_ID_Add" value="<?php echo $row_rsCyclo6000["itemId"]; ?>" >
<input name="sumidrive1_3_Quantity_Add" type="text" class="qtyformelem" value="1" size="4" >
<input name="sumidrive1_3_ATC" type="image" class="cartbutton" value="Add to Cart" src="/assets/misc images/cart.gif" alt="Add to Cart" border="0">
</form> </td>



Thanks!

Sign in to reply to this post

Ray BorduinWebAssist

I don't see the problem.

Sign in to reply to this post
Did this help? Tips are appreciated...

anonymous

Why don't you try commenting out statements until it will load. Then you can narrow your focus.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...