Search found 5 matches
- Sat Jan 14, 2012 5:51 am
- Forum: PHP - Code
- Topic: Notice: Undefined index: HELP
- Replies: 2
- Views: 1361
Re: Notice: Undefined index: HELP
Method One: The Best way is that you copy your php code to another file and change the form action to that php file. For Example: add following taxt to your form tag. <form action="submit.php"> Now move all php code <?php ?> to a file name submit.php, Check it will work fine.. Method two: ...
- Fri Apr 22, 2011 12:43 pm
- Forum: PHP - Code
- Topic: £10 for the first person to help me sort my problem
- Replies: 2
- Views: 216
Re: £10 for the first person to help me sort my problem
This is an example how to get checked , check box in multi steps form. Step One ( an html form) <html> <body> <form method="POST" action="step_2.php"> <input type="checkbox" name="c1" value="ON">Royal Mail <br> <input type="checkbox" name=&...
- Fri Apr 22, 2011 12:17 pm
- Forum: PHP - Code
- Topic: PHP Countdown
- Replies: 6
- Views: 578
Re: PHP Countdown
yes, and that visitor view the webpage you want to show after the countdown reached 00:00:00 ...
what do u want to do ??
what do u want to do ??
- Fri Apr 22, 2011 12:09 pm
- Forum: PHP - Code
- Topic: web form data to csv file problem
- Replies: 4
- Views: 491
Re: web form data to csv file problem
Try Following @yAz <?php $name = $_POST['name']; $email = $_POST['email']; $fp = fopen('formdata.txt', 'a'); $savestring = $name . ',' . $email . ' '; fwrite($fp, $savestring); fclose($fp); //Send Current data in email // Sending Same CSV file via email just waste of bandwith $to = 'you@yourdomain.c...
- Fri Apr 22, 2011 11:32 am
- Forum: PHP - Code
- Topic: how to delete same lines in file .txt but keep one
- Replies: 3
- Views: 302
Re: how to delete same lines in file .txt but keep one
Try Following if you want to delete duplicate lines from your text file
// Write your filename
$filename = 'ur_file.txt';
$text = array_unique(file($filename));
$f = @fopen($filename,'w+');
if ($f) {
fputs($f, join('',$text));
fclose($f);
}
@yAz
// Write your filename
$filename = 'ur_file.txt';
$text = array_unique(file($filename));
$f = @fopen($filename,'w+');
if ($f) {
fputs($f, join('',$text));
fclose($f);
}
@yAz