buddylee17 216 Practically a Master Poster

Looks like manish.s beat me too it. Just remember that your checkbox group is an array, and they have to be extracted with a loop. Also, a radio button may be better for the service if you only want one possible value.

buddylee17 216 Practically a Master Poster

Please start a new thread and mark this one as solved.

buddylee17 216 Practically a Master Poster

Drink up buddy!!! funny

buddylee17 216 Practically a Master Poster

Do the customers know you are storing there credit card numbers? Do the credit card companies know about this? I think that both parties would have a problem with you storing this information without their knowing and without you having the proper security credentials.

Salem commented: Yes indeed, a disaster waiting to happen. We should be told the name of the store, so we can avoid it. +25
buddylee17 216 Practically a Master Poster
buddylee17 216 Practically a Master Poster

You could also cleanse the complete post array:

<?php
@extract($_POST);
foreach($_POST as $key => $value){
mysql_real_escape_string($value);
}
//now do specific cleansing and insert query
buddylee17 216 Practically a Master Poster

Why not replace the random meaningless filename of

$num = md5(uniqid());

with a unix timestamp which will record the files in chronological order and still be unique:

$num = date("Ymd his");
$filename = $num." ".md5(uniqid(rand(), true)).".html";

?
This way you would know exactly when each file was written.

buddylee17 216 Practically a Master Poster
<?php
$page = file_get_contents('http://www.google.com');
$num = md5(uniqid());
$filename = $num;
$filename .=".html";
$handle=fopen($filename,"x+");
fwrite($handle,$page);
?>
theimben commented: Thanks for your help - !Unreal +2
buddylee17 216 Practically a Master Poster

Yes the http.conf shouldn't have to be modified for simple read and write of text files. The http.conf is more used for things like enabling advanced functions like mod_rewrite that aren't normally enabled by default.
Look into fopen, fwrite, and fread. Also if you run into trouble, DaniWeb has one of the best php forums in the world, hands down.

buddylee17 216 Practically a Master Poster

Yes, just open the db and save as .mdb. Then modify the DSN to reflect the changes.

buddylee17 216 Practically a Master Poster

Here you go:

<script type="text/javascript">
function validator(){
var valid = true;
if (document.form1.textMessage.value=='')
	{
	document.getElementById('tobeVisible').style.visibility='visible';
	valid=false;
	}
	return valid;
}
</script>
buddylee17 216 Practically a Master Poster

Your code is a complete mess. You're trying to echo static html and it doesn't have any <?php delimiters. The delimiters tell the server which parts of the code to parse. Without them, all of your code gets delivered to the browser without being parsed in plain text.
You are also mixing html and xhtml elements, no doctype...
Here's a cleaner version of your page:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript">

function ConfirmForm()
{
var cmp = document.zzz.N.value;

	if (cmp != "")
	{
	 return confirm("are you sure you want to submit this?");
	}
	else
	{
	 return alert("You have not filled all of the necesary fields");
	}
}

</script>
<title>Form</title>
</head>
<body>
<form name="zzz" method="get" action="something.php"  onsubmit='return ConfirmForm();'>

Name: <input type='text' name="N" id="N" />
<input type="submit" name="submit" value="Submit" />

</form>

</body>
</html>

Your javascript validation will work fine to save the user time. However, it's not going to be secure. You need to do server side validation. At the top of something.php, do some basic checks and redirect back to the referring page if any fields aren't complete:

<?php
if(empty($_GET['N'])){
header('Location:form.php');
exit;
}
?>
<html>
<head>
buddylee17 216 Practically a Master Poster

Try this out, prior to insert query:

$fridate=date('Y-m-d h:i:s',strtotime($fridate));
buddylee17 216 Practically a Master Poster

Apache is normally not configured to parse a .inc file so, if a user views the file, the source code will be revealed as plain text. However, if the users views the php file, the server will parse everything and the user will only see html.

buddylee17 216 Practically a Master Poster

Use php strtotime() function on the $fridate variable prior to the insert.
http://us3.php.net/strtotime

buddylee17 216 Practically a Master Poster

Try this

<?php
putenv("TZ=GMT");
$gmt= date("d-m-Y h:i A"); 
echo "<input type='text' value='$gmt' />";
?>
buddylee17 216 Practically a Master Poster

You can use POST array or you can write the data to a db or file that both can share.

buddylee17 216 Practically a Master Poster

You'll have to post some code or provide a link.

buddylee17 216 Practically a Master Poster

It's the nesting order of the elements. For instance:

p .red { color:red }

would apply a style to elements nested in p tags with the class="red" like below:

<p>The following span is <span class="red">red</span></p>

It would display as: The following span is red
Also,

.class1 p {color:green}

would apply a style to p elements nested under elements with class="class1" like below:

<div class="class1">Bill had <p>green</p> shoes on.</div>

It would display as:
Bill had
green
shoes on.

buddylee17 216 Practically a Master Poster

You'll need some type of ftp (file transfer protocol) software. This will allow you to move your files from your local machine to the server that the site is hosted on. Most web editors like Dreamweaver and FrontPage already have ftp included. Otherwise, there are many free ones like Filezilla and FireFTP that will do just fine. Once the software is installed, you'll need your domain name, username, and password to connect to the site.

buddylee17 216 Practically a Master Poster

thanks for your reply...
can i make these type of urls with out httpd.ini file...if so tel me how to do that??????

You'll probably have to enable mod rewrite by uncommenting a line in the http.conf file located in apache/conf/ folder. You won't be able to mod rewrite without first enabling it.

buddylee17 216 Practically a Master Poster

li-list item; ul- unordered list; They are used to create a list in html.
Read more at http://www.w3schools.com/TAGS/tag_li.asp

buddylee17 216 Practically a Master Poster

That's funny, coming from YouTube. Especially since YouTube was built on copyright infringing material.

buddylee17 216 Practically a Master Poster

If you have a good product and think it will make money, do what every other startup company does. Go to the bank, take out a loan, and buy the encoder on the idea that it will pay for itself.

buddylee17 216 Practically a Master Poster

I'm not sure if wamp server installs a mysql command line tool but you should be able to access MySql via phpmyadmin. Try going to http://localhost/phpmyadmin.

buddylee17 216 Practically a Master Poster

Why are you trying to open an html page with fopen?
Use:

header('Location:http://www.stopaeta.org');
buddylee17 216 Practically a Master Poster

Have you tried using a header?

header('Location:index.php');

This will only work if nothing has been outputted to the client yet.

buddylee17 216 Practically a Master Poster

It's just a bunch of divs nested together with an external CSS file. You should be able to view the source code and see how it is done. You'll also want to look at the css file to see how the elements have been styled. It's all there.

buddylee17 216 Practically a Master Poster

Yes, it will require some client side JavaScript, but not much:

<input type="button" value="Play" onclick="this.value='Playing...'" />

Is this what you were needing?

buddylee17 216 Practically a Master Poster

Create a blank php page and put the following in to see how it should work:

<?php 
$profpic="http://www.daniweb.com/alphaimages/logo/logo.gif";
?>
<html>
<head>
<style type="text/css"> 
body {
    background-image:url('<?php echo $profpic ;?>');   
	margin-left: 10px;
	margin-top: 4px;
	margin-right: 5px;
	}
</style>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
</body>
</html>

After you see how it works, try replacing the $profpic value with your image path.

Kavitha Butchi commented: u r simply gr8!! +1
buddylee17 216 Practically a Master Poster

No, throw out that completely overkill switch statement and get rid of any attributes and values in the body. We don't do it like that anymore. We use CSS. Here's the basic idea:

<?php 
$profpic="whateverimage.jpg";
?>
<html>
<head>
<style type="text/css">
body{
background-image:url('<?php echo $profpic ;?>');
}
</style>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
buddylee17 216 Practically a Master Poster

The code assumes that php has been closed with a ?> delimiter prior to the style tag

buddylee17 216 Practically a Master Poster

Just do this if you want to assign it to the body:

<style type="text/css">
body{
background-image:url('<?php echo $profpic ;?>');
}
</style>

Note: This should go in the head of the document.

buddylee17 216 Practically a Master Poster

Your links contain two forward slashes instead of one ie:.com// instead of .com/

buddylee17 216 Practically a Master Poster

Fireworks is for making vector graphics to be used in web pages. It has a lot of default styles to use for fast creation of custom dropdowns, buttons, and navigation bars. All of the neat little graphics found on DaniWeb can be created using FireWorks. If you use Firefox, right click the page and click View Page Info. Click the media tab and scroll through the graphics to see what can be done in FireWorks.

buddylee17 216 Practically a Master Poster

The name the element has in the form goes inside the brackets.
So if your form has

<input name="name" type="text" id="name" tabindex="16" />

After the form is submitted, PHP can assign the value posted to the variable. Here we assign the value of the textbox above to the variable $nameField:

$nameField=$_POST['name'];

Now if you want to use that variable in your email, you'll need to use the variable just defined.

$body = <<<EOD
<br><hr><br>
name: $nameField <br>

Get it??

peter_budo commented: Nicely done +12
buddylee17 216 Practically a Master Poster

Wrap the code like so:
[code=php]Code goes here [/code]

As to your problem, your email contains undefined variables. For instance you define namefield as $nameField = $_POST['name']; but in the email you send, you have the undefined variable $name instead of the defined $nameField.

buddylee17 216 Practically a Master Poster

Next time, wrap your code in code tags when posting to keep things neat. There are plenty of people here to help out. Keeping things neat will improve your chances of getting help.

buddylee17 216 Practically a Master Poster

Glad to help.

buddylee17 216 Practically a Master Poster

When using heredoc, you must open and close the variable with the same identifier.

$body = <<<em
<br><hr><br>
name: $name <br>
surname: $surname <br>
email: $email <br>
telephone: $telephone <br>
comments: $comments <br>
EOD;

should be:

$body = <<<EOD
<br><hr><br>
name: $name <br>
surname: $surname <br>
email: $email <br>
telephone: $telephone <br>
comments: $comments <br>
EOD;

Also, variables in php are case sensitive, so you'll have a blank page unless you change echo "$theresults"; to echo "$theResults";

buddylee17 216 Practically a Master Poster

You could just reduce width and height like suggested, however the client will still have to download the full sized image into the cache then resize it. Users are impatient and if the images are more than a couple 100kb, they may just leave before the pics are finished downloading. Utilizing a server side script, you could create thumbnails on the fly that would be much smaller than the original and not take near the time and bandwidth to download. I know php can do this with the gd image library.

buddylee17 216 Practically a Master Poster

Just use > instead of GREATER THAN. Since xCount is numeric, you also won't need quotes around it. So I think:

$sql = "SELECT * FROM `textads` WHERE `expos` > xCount ORDER BY RAND() LIMIT 3";

should work.

buddylee17 216 Practically a Master Poster

Are you getting a "Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by" warning at the beginning of the script? If so you may have BOM characters added to the script.

Some WYSIWYG editors will add extra BOM characters before the beginning of the script causing an output prior to session_start. You won't be able to see the characters in the code editor. Open the file in Notepad and try to spot any extra characters that shouldn't be there.

Another possible problem, if the problem script is located in a directory above the others using the session vars, I dont believe that they'll be able to share the session.

Also, as far as I know, unless session_autostart is set to 1 in php.ini, you'll need to uncomment the session_start and make sure that it comes before any other output.

buddylee17 216 Practically a Master Poster

I'm sure there is similar open source software to Flash but it will probably not have near the capabilities. You could try to run Flash on Linux through WINE.

buddylee17 216 Practically a Master Poster

The html on the page has been put together poorly. JavaScript before the doctype... Validate a page with W3C and see for yourself. The page mentioned contains 147 errors. You can't expect this site to work consistently in all browsers. Either mandate IE7 as the required browser or contact the programmer and tell him/her to clean it up.

buddylee17 216 Practically a Master Poster

sayaan, Please start a new thread.

buddylee17 216 Practically a Master Poster

Are you referring to Captcha? You should be able to find quite a few scripts to do what you need in the link.

buddylee17 216 Practically a Master Poster

Read No Margin For Error. Also, if you'll download the Firefox Web Developer addon, it will allow you to outline elements and you can compare the outline to where you think the element should be.

buddylee17 216 Practically a Master Poster

That's awesome

buddylee17 216 Practically a Master Poster

Don't use a submit button. Use input type ="button" and use a javascript onclick event to trigger the script. Also, to run a script on the server, you'll need to look into AJAX.