close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Error in my PHP?

Thread began 7/10/2009 9:56 am by jenbar3378469 | Last modified 7/10/2009 1:35 pm by jenbar3378469 | 1165 views | 2 replies


Error in my PHP?


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']){ ?>

header("Location: " . $_SERVER['PHP_SELF'] . "?available=" . $row_rsAstero['itemQty']);

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


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





Ease of use


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...