![](https://forums.phpfreaks.com/uploads/set_resources_1/84c1e40ea0e759e3f1505eb1788ddf3c_pattern.png)
nogray
-
Posts
930 -
Joined
-
Last visited
Posts posted by nogray
-
-
the easiest way for something like this
<div id="hideme">HIde me test </div>
is
[code]
// hidding div
document.getElementById('hideme').style.display = "none";
//showing div
document.getElementById('hideme').style.display = "block";
[/code]
-
327 emails can be sent in a few seconds if you setup your script correctly. If you plan is sending mass email, don't use php native mail() function because it's very slow.
You can use the PEAR Mail package at http://pear.php.net/package/Mail
or PHPMailer at http://phpmailer.sourceforge.net/
if you are on a shared hosting plan, check with your hosting company on mailing limitation. -
The error happens because you are calling the script in the setTimeout instead of using a string type.
All you need is to change your setTimeout like this
[code]
setTimeout("changediv(imagearray, textarray, "+i+")", 2000);
[/code] -
You can give the select an ID and access the select object using that
[code]
<select name="product_id[]" id="product_id">
[/code]
Javascript will be like
[code]
document.getElementById('product_id')
[/code] -
try to set the height and width of the image inside the link
[code]
<img src="t.gif" alt="" width="##" height="##" />
[/code] -
You inner div (<div style='position: relative; top: 0; left: 0; z-index: 2;'>) takes the same opacity info from the faded div(<div style='position: relative; top: 0; left: 0; width: 437px; height: 319px; background: #999999; filter: alpha(opacity=20); -moz-opacity: .20; z-index: 1;'>)
Try to set the opacity of the inner div to 100%, if that doesn't work try to move it outside the faded div. -
You can also use
<input type="button" value="Clear" />
This won't submit the form. -
In the second section, try changing the
$what_image = $what_line[1];
to
$what_image = $what_line[1]."&Comments=".$what_line[5];
and in the pop-up file add
<?PHP echo $_GET['Comments']; ?>
under the image -
This worked find for me, just make sure all your variables are defined (like the id) and the form id in the parent window is 'Send_Form'
-
I cannot find your button style in the code you posted, so I cannot really find the bug. Just a random guess,
Try to remove the height out of the style, and add padding to the top and bottom.
If you can post the style for the button, I may find the bug. -
Just go here
http://www.alexa.com/site/site_stats/signup
-
You can use mod_rewrite (search for it in google) in any CMS. Just make the links
domain.com/page/1234/page-name-here/
redirect to
domain.com/page.php?ID=1234
-
I don't see any style for the button in the code you posted, but IE will hide the border if the inside content is a tiny bigger than the actuall container.
You can fix it by removing the height of the button and just setting the padding-top and padding-bottom.
Also, you need to clear the floated layers before the button
[code]
.clear_div {font-size:1px;
overflow:hidden;
clear:both;}
[/code]
[code]
</div>
<div class="clear_div"> </div>
<input type="submit" value="Save Changes" class="button" />
[/code]
This should fix the firefox issue -
I am not really sure what do you mean by printing the value, but you can access the iframe document object using this code
[code]
<html>
<script>
var page2_doc = "";
function assign_page2(){
page2_doc = document.getElementById('page2').contentWindow.document;
}
</head>
<body onload="assign_page2();">
<iframe id="page2" name="page2" src="page2.html"></iframe>
</body>
</html>
[/code]
you can access any object in the page 2 using the page2_doc
P.S. Both pages must be in the same domain -
It's sending blank email because your mailing script is not on the action page (the upload handler page)
Just cut this code
[code]
$to = 'sold@photocardsandcalendars.com';
$subject = 'Calendar Sold';
$name = $_POST['BillingName'] . "\r\n" . $_POST['BillingCompany'] . "\r\n" . $_POST['BillingAddr1'] . "\r\n" . $_POST['BillingAddr2'] . "\r\n" . $_POST['BillingCity'] . "\r\n" . $_POST['BillingState'] . "\r\n" . $_POST['BillingZip'] . "\r\n" . $_POST['BillingPhone1'] . "\r\n" . $_POST['BillingPhone2'] . "\r\n" . $_POST['BillingEmail'];
$message = $name;
$headers = 'From: sales@photocardsandcalendars.com' . "\r\n";
mail($to, $subject, $message, $headers);
[/code]
into the upload hander -
I don't see this anywhere in the file?
[code]
<?php
$to = 'myemail@email.com';
$subject = 'Subject';
$name = $_POST['Field1'] . "\r\n" . $_POST['Field2'] . "\r\n" . $_POST['Field3'] . "\r\n" . $_POST['Field4'] . "\r\n" . $_POST['Field5'] . "\r\n" . $_POST['Field6'] . "\r\n" . $_POST['Field7'] . "\r\n" . $_POST['Field8'] . "\r\n" . $_POST['Field10'] . "\r\n" . $_POST['Field11'];
$message = $name;
$headers = 'From: email@email.com' . "\r\n";
mail($to, $subject, $message, $headers);
?>
[/code] -
I am not sure how the $uploadHandler is set up, but you can set the mail function to be first, than go one with uploading the file.
-
This is just a guess, but maybe the server doesn't have enough room to open the big file at once,
Try to use fopen, fread, fclose to open the file in pieces instead of one big chunk.
This way, the variables don't need a lot of memory to run. -
I tried your script as is, and it worked fine form me!!!
Try to make the script send the mail then upload the file? -
You'll need to set the markfield and the id as arrays like this
[code]
Mike
<input type="text" name="markfield[]" />
<input type="hidden" name="students[]" value="111" />
[/code]
In your php, you'll run through the markfield array and set the insert query
[code]
$markfield_arr = $_POST['markfield'];
$students_arr = $POST['students'];
$query = "insert into `Marks` (`Student_ID`, `Mark`) values ";
for ($i=0; $i<count($markfield_arr); $i++){
$query .= "('".$students_arr[i]."', '".$markfield_arr[i]."'), ";
}
$query = trim($query, ", ");
$result = mysql_query($query);
[/code] -
If you can post you HTML form, it'll be easier to debug.
-
You can set a class for the submit button, so the style won't effect other input fileds.
-
If your <link rel="stylesheet" type="text/css" href="includes/styles.css" /> in the head section of the HTML and the file name styles.css (no styles.php or anything else), it should work fine.
If you have this live somewhere, I can check it out for you. -
You are using width="100%" in the table, this will take the entire width of the screen in IE if the parent elements don't have a width set up.
you can try to add the _width:80% or something like that (including the _) so only IE will read it.
P.S. put the _width:##% after the width:##%
flash and java
in Javascript Help
Posted
What you can do is to put the flash file into a div and hide it when the menu is visiable.