Shanti C 106 Posting Virtuoso
Shanti C 106 Posting Virtuoso
you mentioned, in third page the user will go to register..without a registration how he will login in the first page...
I think you are in confusion what you want to develop,first clear that and go...
ALL THE BEST...
Do you have your Privacy settings set to block Cookies?
I would check that first.
Go to Tools-Options-Privacy and then check your Cookies settings.
urgently tel me your privacy settings...
im waiting...
You mentioned username , password,email are your variables...
I think if you provide a login page, you should have that data in your database, then why should you put password and email in sessions.
First you have to put your username in sessions like:
session_unregister('username');
session_register('username');
$_SESSION['username'']=$_POST['username'];
Then you can use the $_SESSION variable where ever you want...
or
Tel what is purpose of using session in third page..
Please confirm is that data in your database or not?
You have to create database fields with checkbox names..and update that field with 1,if the check box is checked...
You just write the piece of code in the starting of page:
session_start();
And write the below code where ever you want to store your session variable:
session_unregister('mysesvar');
session_register('mysesvar');
$_session['mysesvar']=your value;
And retrieve your session variable where ever you want by using this:
$_session['mysesvar'].
Cookies are disabled
Firefox include the option to block cookies globally and on a per-site basis.
1. At the top of the Firefox windowOn the menu bar, click on the ToolsFirefoxEdit menu, and select Options...Preferences....
2. Click the Privacy icon.
3. Make sure Accept cookies from sites is check marked.
* If it is not checked, check mark it.
4. Click Exceptions....
5. Make sure the site you're trying to access isn't listed.
* If it is listed, click on its entry, then click Remove Site.
If you changed any settings, try accessing the web site again.
And clear your cache also?
Can you please tel with which website,do you got that error...
Could you please clean cookie and try again? It may be caused by passport upgrade while your broweser still keep history data in cookie.
Thanks,
Shanti.
Hello keith...
Thanks for your reply...
I have reffered all your old posts...
But i found nothing according to my requirement...
I think you have enough knowledge to clear my thread...
Please help...
hello...
Can any one please help me out?
I want an image gallery script, where the images are displayed as thumbnails from many subfolders created dynamically and not from database...
Please check out this url:
http://mig.sourceforge.net/gallery/index.php?currDir=.
And i want to implement my galley in this way..
Please post me any information.
Thanks in Advance...
I want the script in ajax also....
Once Check my thread and reply..
please.....
send your database also...
Helloo..
k.Thats fine...
Tel, how did you get your record from database means by using one id,you was getting the records from db to update now,by using that id ,you can update your record now...
Using where clause in update query...
ANy doubt tel me...
Clearly post your thread...
Means you want to store the details in database,,and you want to retrieve that.tel me clearly....
Please help me....
Please check out this url:
http://mig.sourceforge.net/gallery/index.php?currDir=.
And i want to implement my galley in this way..
Please post me any information.
And you have add one more fields like service in your user table,then you will store the check boxes enabled with commas...
And we can retrieve them by using explode function...
The line you have write is wrong:
<input type="Checkbox" name="contype" value="B"> <?echo $row['servicet'];
//change this line to this:
<input type="Checkbox" name="contype" value="<?echo $row['servicet'];">
hello...
Can any one please help me out?
I want an image gallery script, where the images are displayed as thumbnails from many subfolders created dynamically and not from database...
Thanks in Advance...
hey,
when registration is completed,then put a back button with an id of corresponding userid or name...By using that you can retrieve the information form the database...
Its simple...
Try it...
Conversion of asp to php is not possible...
We just use the logic and implement it in our implementation language...
You just fill up that variables and execute that code...
put echo before $email_message.
Then you will get what is going to our mail...
Try and ask if any errors arise...
Try praveen's code.
Its right...
And ask us,if any error arise...
Thanks praveen...
Good Information...
Any other info, post again...
Hello all...
Any other information about this thread...
please post it...
Thanks...
Hello ...
Try this code..
<?php
2.
$fileatt = ""; // Path to the file
3.
$fileatt_type = "application/octet-stream"; // File Type
4.
$fileatt_name = ""; // Filename that will be used for the file as the attachment
5.
6.
$email_from = ""; // Who the email is from
7.
$email_subject = ""; // The Subject of the email
8.
$email_txt = ""; // Message that the email has in it
9.
10.
$email_to = ""; // Who the email is too
11.
12.
$headers = "From: ".$email_from;
13.
14.
$file = fopen($fileatt,'rb');
15.
$data = fread($file,filesize($fileatt));
16.
fclose($file);
17.
18.
$semi_rand = md5(time());
19.
$mime_boundary = "==Multipart_Boundary_x{$semi_rand}x";
20.
21.
$headers .= "\nMIME-Version: 1.0\n" .
22.
"Content-Type: multipart/mixed;\n" .
23.
" boundary=\"{$mime_boundary}\"";
24.
25.
$email_message .= "This is a multi-part message in MIME format.\n\n" .
26.
"--{$mime_boundary}\n" .
27.
"Content-Type:text/html; charset=\"iso-8859-1\"\n" .
28.
"Content-Transfer-Encoding: 7bit\n\n" .
29.
$email_message . "\n\n";
30.
31.
$data = chunk_split(base64_encode($data));
32.
33.
$email_message .= "--{$mime_boundary}\n" .
34.
"Content-Type: {$fileatt_type};\n" .
35.
" name=\"{$fileatt_name}\"\n" .
36.
//"Content-Disposition: attachment;\n" .
37.
//" filename=\"{$fileatt_name}\"\n" .
38.
"Content-Transfer-Encoding: base64\n\n" .
39.
$data . "\n\n" .
40.
"--{$mime_boundary}--\n";
41.
42.
$ok = @mail($email_to, $email_subject, $email_message, $headers);
43.
44.
if($ok) {
45.
echo "<font face=verdana size=2>The file was successfully sent!</font>";
46.
} else {
47.
die("Sorry but the email could not be sent. Please go back and try again!");
48.
}
49.
?>
Thanks...
online shopping
forums
blogs
online ticketing
student maintenece
shopping cart
portal
library system
Quote latest news about sports in your site at index page with small images...
Its better to put the end user for long time in your site...
And i dont have social sites to put as add...
k...Thanks for your time...
Hello spazzlady...
I have seen your attachment , in that ,i think your issuer table is wrong.
Means , issuer table has no subcategories...Thats why repetition is done...
So tel me from which table you have to get values to the second drop down...
you have to post this thread in viruses forum...
Yes Nav...
I also did like that ,i got..
But i want it with out sessions...
If any thought ,Please Tel me...
Thank you...
sorry for my grammitical mistakes...
I want to print four or more previously viewed questions on my faqview.php
Thanks...
Thanks...
And i want to print four previously viewed questions ...
Than what should i do..
First you have contact with paypal payment gate way..
Then they will provide with some variables..
Then nothing to do:
We just send them(to paypal) with user card number and amount and some vars if required..
Then they will send back our request with info..
then you will indicate that info to your end user...
Simple..
but first you should contact the paypal payment gateway..
Thanks..
Can u explain with details...vicky..please,,,
Hey i tried this :
if(!empty($_GET['nid']))
{
session_unregister();
session_register();
$_SESSION['prev'].=$_GET['nid'];
$_SESSION['prev'].=",";
print_r($_SESSION['prev']);
}
I got the answer correctly..
But any other thougts with out sessions...will be appreciated..
I have printed questions on faq.php...
when click on that question it will go to faqview.php
In that faqview.php , i want to print my previous viewd question...
Can any one help me out...
Help is urgent...
Thanks..
I heard that sql injections are causing to our databases by spammers...
Can anyone please tel me how it is possible ?
And very importantly how to escape from sql injections...
I expect more answers from you...And Thanks for those ....
Use this script in your php page:
<script>
function comparision(){
d=document.form1;
var total="";
if(!d.c.length){
if(d.c.checked) {
d.check_compare.value=d.check_compare.value+d.c.value+',';
return true;
} else {
alert("Please select check Box");
return false;
}
}
for(var i=0; i < d.c.length; i++){
if(d.c[i].checked) {
total +=d.c[i].value + "\n";
d.check_compare.value=d.check_compare.value+d.c[i].value+',';
}
}
if(d.check_compare.value=="") {
alert("Please select atleast one check Box");
return false;
}
}
</script>
And wirte this code to get what values selected on prevoius page..
<?
session_start();
include_once("../includes/functions.php");
if(isset($_POST['check_compare']))
{
$tempids=$_POST['check_compare'];
echo $tempids;
$ser_qry="select * from products where find_in_set(p_id,'".$_POST['check_compare']."')";
$ser_res=mysql_query($ser_qry);
$ser_cnt=mysql_num_rows($ser_res);
}
?>
And use form tag and wirte the above code which have posted early..
<form name="form1" action="nextpage.php" method="post" onSubmit="return comparision()">
<input type="hidden" name="check_compare">
Your code
</form>
If any queries ask me..
Yes,we can write our script code in head tags...
And database connection is like this:
<?
global $link;
$link = mysql_connect('localhost', 'root', '1234') ; // Connection
mysql_select_db("mydb") or die(mysql_error()); // Selection of database
//for closing
<?
if(isset($link))
{
mysql_close($link);
}
?>
?>
We can write database connection in our php page at top of the page by using <? ?> tags...
Mozilla Firefox and some times IE..
K sir..
Try to increase your speed while coding...
its my heartfull suggestion for u..
ALL THE BEST.
Shanti.
Hello try this..
<td><?=substr($_POST['textarea'],0,20);?>.....</td>
You can print only some of the content...
In php,it will be done by using mail function and retrieve the values by $_POST.