Forum: PHP Apr 24th, 2009 |
| Replies: 5 Views: 1,203 or you can do a fopen HTTP POST from the email_order.php
$fp = fsockopen($host, 80);
// send headers
fputs($fp, "POST /cgi-bin/webscr HTTP/1.1\r\n");
fputs($fp, "Host:... |
Forum: PHP Apr 20th, 2009 |
| Replies: 4 Views: 409 // this code will (should) do what you are asking for, but it's not the best method imo.
$final_array = array();
for($i = $val; $i >= 1; $i--)
{
$array = "array". $val;
$co = "co".$val;... |
Forum: PHP Apr 20th, 2009 |
| Replies: 4 Views: 409 // get number of colors
$val = $_GET['val'];
// $val starts from 1
for($i = 1; $i <= $val; $i++)
{
$color = $_GET["col".$val];
echo $color;
} |
Forum: MySQL Apr 18th, 2009 |
| Replies: 2 Views: 1,854 does this work?
SELECT COUNT(x.*) AS countx, COUNT(y.*) AS county, COUNT(z.*) AS countz, (countx+county+countz) AS total FROM mytable1 AS x, mytable2 AS y, mytable3 AS x
Edit: No. but the... |
Forum: JavaScript / DHTML / AJAX Jul 14th, 2008 |
| Replies: 14 Views: 1,722 Hi,
I can't run your code because it's not HTML, and I don't have ASP server.
I'm predominantly at PHP and only wrote in ASP once or twice, so at best, I am not an ASP expert but the webpage... |
Forum: JavaScript / DHTML / AJAX Jul 14th, 2008 |
| Replies: 14 Views: 1,722 Some of the events you can make use of
<input onclick="" onfocus="" onblur="" onchange="">
and to reference these in javascript,
<script>
function validate(objForm) |
Forum: JavaScript / DHTML / AJAX Jul 12th, 2008 |
| Replies: 14 Views: 1,722 you will need a little bit of css as well as a few js functions to deal with the onchange and onblur events.
you should take some time to view source which would explain much of the behaviors... |