[PHP] diksha's problem
hi everybody, i am a b.tech final year student and as a part of the requirement of the degree, i have to do a software project. the project that i am doing is "E-SHOPPING PORTAL DEVELOPMENT" and it uses php. i have started learning php 10 days back. today i have the following problem: i have a directory called "bdoi_change" in which i have an html registration form called "regist.html". i am attaching "filecheck.php" to regist.html so that when i click on the "submit" button on regist.html, i get connected to filecheck.php. in "filecheck.php" i have opened a file "andar.html" and have written "i have solved an error today" in it through "filecheck.php". and when filecheck.php is run, it shows me " i have solved an error today" . but in "bdoi_change" i cannot see "andar.html" nor can i open it by internet explorer. if anybody can solve my problem, please reply back. thanks a lot, diksha. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] opening a file from internet explorer
hi all, i have a problem: i am opening and reading and writing a file through php page. $fp = fopen("\bdoi_change\andar.html", "w"); fwrite($fp, "dikshai solved problem!"); but when i try to open "\bdoi_change\andar.html" through internet explorer, i am getting "page cannot be displayed". please help me out. diksha. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP fileperms is not working
hi all, the file permission command is not working. any idea why? $filename = '\bdoi_change\andar.html'; printf("%0",(fileperms("\bdoi_change\andar.html") & 0777)); diksha. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP fileperms
HI ALL, i am getting the result as 644 when i execute the following command. can anyone please tell me what file permission does 644 stand for and what should i do to make my file readable? $filename = '\bdoi_change\sundar.html'; printf("%o",(fileperms("\bdoi_change\andar.html") & 0777)); regards, diksha. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] file not opening in internet explorer
hi all, $fp = fopen("\bdoi_change\sundar.html", "w"); i am able to write to this file through my php page filecheck.php and even am able to read the written contents. but when i enter http://192.168.0.1/bdoi_change/sundar.html in my internet explorer address bar, it says the page cannot be displayed. the file permissions are "rw-r-r" thanks in advance, regards, diksha. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] online tutorial
dear all, i am a final year engineering student and have started studying PHP since last 10 days. can anybody suggest some good online tutorial for mastering PHP? regards, diksha. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] hi
hi jason, my file is opening perfectly fine now. thanks. take care, diksha. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] button not seen
dear all, hi! i have a php script filecheck2.php in which i have written the following code. $fp = fopen("sundar.html", "w"); fwrite($fp, "dikshai solved problem!"); //fwrite($fp,"your login name is : $login"); fwrite($fp,""); fwrite($fp,""); fwrite($fp, ""); fclose($fp); now when i run the php script, i am able to see "i solved problem" on my screen according to the code. but i CANNOT SEE THE BUTTON ! can anyone please tell me why? regards, diksha. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] button not opening
hi everybody, why isn't anybody replying my last mail subject "button not opening" regards, diksha. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] mr. jason wong kind attention
Respected Mr. Jason Wong, I am sorry you felt bad, but please let me add that I had no intentions of being rude of anybody. It just happened that today I did not find anybody on the mailing list and asked the question casually out of curiosity.And in reply wanted to know what are the normal timings during which you guys are available for your precious help. I request you not to misconstrue my innocent words. Begging for apology, Sincerely yours, Ms. Diksha Neel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] mr. jason wong kind attention
respected mr.jason wong, i hope you are no more annoyed with me! looking forward to hearing from you. regards, diksha neel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] formtext
HI EVERYBODY, i was trying to put a text field in a form in my php script but it's giving me the following error: Parse error: parse error in /var/www/html/bdoi_change/f1.php on line 10 the code is as follows: Business Directory Of India Please enter other login id: echo ""; echo "Name $yname \n"; echo "Company name $cname \n"; echo "Category $cat \n"; echo "Primary business $pbus \n"; echo "Business email $bemail \n"; echo "Business address $badd1 \n"; echo "Business area $area \n"; echo "Business city $city \n"; echo ""; ?> regards, diksha. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] formtext
HI EVERYBODY, i was trying to put a text field in a form in my php script but it's giving me the following error: Parse error: parse error in /var/www/html/bdoi_change/f1.php on line 10 the code is as follows: Business Directory Of India Please enter other login id: echo ""; echo "Name $yname \n"; echo "Company name $cname \n"; echo "Category $cat \n"; echo "Primary business $pbus \n"; echo "Business email $bemail \n"; echo "Business address $badd1 \n"; echo "Business area $area \n"; echo "Business city $city \n"; echo ""; ?> regards, diksha. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] entrycheck
HI EVERYBODY, WHEN I RUN MY PHP SCRIPT TYPED BELOW, I GET 'connected successfully query failed'. i have in bdoi_change database a table called entry with 2 fields: login and pass in which i have put some data. can anyone help out? regards, diksha. I HAVE AN HTML FORM BY NAME entry.html the code of which is the following: User Name User Password AND THE check.php code is as follows: $connection=mysql_connect("localhost","root","")or die("Could not connect"); print "Connected successfully"; mysql_select_db("bdoi_change")or die("could not select database"); $query = "select * from entry where login='$login' and pass='$pass' "; $result = mysql_query($query,$connection) or die("Query failed"); $num=mysql_num_rows($result); //present results based on validity. echo "$num"; if($num==1) { echo "You are a valid user!"; } if($num==0) { echo "you are not authorised"; } ?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] filesave
dear all, hi! i have an html page entry.html in which is a submit button that connect me to check.php on clicking it. but when i click on the "validate me" button, i get the "file download box"that asks whether i want to save the file on disk or open from current location. and what i want is that on clicking "validate me" button, the check.php should be displayed in internet explorer. sending below code for entry.html and check.php. thanks, diksha. THIS IS ENTRY.HTML User Name User Name User Password Sign in Not registered ? Sign up THIS IS CHECK.PHP $connection=mysql_connect("localhost","root","")or die("Could not connect"); print "Connected successfully"; mysql_select_db("bdoi_change")or die("could not select database"); $query = "select * from entry where login='$login' and pass='$pass' "; $result = mysql_query($query) or die("Query failed"); $num=mysql_num_rows($result); //present results based on validity. echo "$num"; if($num==1) { echo "You are a valid user!"; } if($num==0) { echo "you are not authorised"; } ?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] registration
dear all, hi! i have a php page called "check.php" in which is a textbox named "login".on my second php page named "registration.php" i can see the content of the textbox by echo "$login". but when i try to get the same content in a textbox in "registration.php", i get no result. that text box is also named login. giving below some relevant code of registration.php : $connection=mysql_connect("localhost","root","")or die("Could not connect"); print "Connected successfully"; mysql_select_db("bdoi_change")or die("could not select database"); echo " $login "; echo" Login ID * "; ?> thanks, diksha. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] submit button
hi everybody, i have a PHP script by name registration.php in which i have a submit button at the bottom. the form in this script is sent to p.php by "GET". but on clicking the submit button, nothing happens attaching registration.php. p.php has only the following: please help, diksha. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] submit button
dear all, hi! i have a php page by name diki.php which i have attached. in this page is a submit button at the end. the form in which this button is placed is by "get" sent to p.php which has only the following contents: but when i click on submit button i am not getting connected to p.php. strange! any help would be greatly appreciated. thanks! best wishes from India. diksha. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] submit button
dear all, hi! i have a php page by name diki.php which i have attached. in this page is a submit button at the end. the form in which this button is placed is by "get" sent to p.php which has only the following contents: but when i click on submit button i am not getting connected to p.php. strange! any help would be greatly appreciated. thanks! best wishes from India. diksha. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] submit button
dear all, hi! i have a php page by name diki.php which i have attached. in this page is a submit button at the end. the form in which this button is placed is by "get" sent to p.php which has only the following contents: but when i click on submit button i am not getting connected to p.php. strange! any help would be greatly appreciated. thanks! best wishes from India. diksha. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] SUBMIT
dear all, hi! i have a php page by name diki.php which i have pasted below. i have removed the irrelevant code because of the size limit of the email. in this page is a submit button at the end. the form in which this button is placed is by "get" sent to p.php which has only the following contents: but when i click on submit button i am not getting connected to p.php. strange! any help would be greatly appreciated. thanks! best wishes from India. diksha. Registration Form
function allow()
{
if(document.f1.ocity.value!="Others")
document.f1.city1.blur();
}
function allow1()
{
if(document.f1.orcity.value!="Others")
document.f1.rcity1.blur();
}
function rallow()
{
if(document.f1.ostate.value!="Others")
document.f1.state1.blur();
}
function rallow1()
{
if(document.f1.orstate.value!="Others")
document.f1.rstate1.blur();
}
function adjust()
{
pbus1=document.f1.pbus.options[document.f1.pbus.selectedIndex].value;
if(pbus1=="accounting")
{
document.f1.interest1.checked=true;
}
if(pbus1=="advertising")
{
document.f1.interest2.checked=true;
}
if(pbus1=="agriculture")
{
document.f1.interest3.checked=true;
}
if(pbus1=="arts")
{
document.f1.interest4.checked=true;
}
} function check(na) { var st=na;st1=st.length; for(i=0;i57)) { return false; break; } } } function checke(id) { r1=id; r2=r1.indexOf('@',0);r3=r1.indexOf('.',0); r4=r2+1; r6=r1.length -1; rlen1=r1.length; rcont=0; rstart=0; while(rstart 1) { return false; }
r5=r1.indexOf(null,r6); if((r1.indexOf('@',1)==-1)||(r2>r3)||(r3==r4)||(r3==r6)||(r1.indexOf("@",0)==-1)
||(r1.indexOf(".",0)==-1))
{ return false;}
}
function validation()
{
if(document.f1.yname.value=="")
{
alert("Please enter your name");document.f1.yname.focus();return false;
}
if(document.f1.cname.value=="")
{
alert("Please enter company name");document.f1.cname.focus();return false;
}
if(document.f1.cat.value=="- -Select a Category- -")
{
alert("Please select Category ");document.f1.cat.focus(); return false;
}
if(document.f1.pbus.value=="- -Select Primary Business- -")
{
alert("Please select Primary Business ");document.f1.pbus.focus();return
false;
}
if(document.f1.bemail.value=="")
{
alert("Please enter business email");document.f1.bemail.focus();return
false; } else { cbemail=checke(document.f1.bemail.value); if(cbemail==false) { alert("Enter correct Business Email
Address");document.f1.bemail.focus();return false;
}
}
if(document.f1.pemail.value=="")
{
alert("Please enter personal email");document.f1.pemail.focus();return
false; } else { cpemail=checke(document.f1.pemail.value); if(cpemail==false) { alert("Enter correct Personal Email
Address");document.f1.pemail.focus();return false;
}
}
if(document.f1.pass.value=="")
{
alert("Please enter password");document.f1.pass.focus();return false;
}
else
{
if(document.f1.pass.value.length<4)
{
alert("Password should contain 4
characters");document.f1.pass.focus();return false;
}
}
if(document.f1.badd1.value=="")
{
alert("Please enter business address");document.f1.badd1.focus(); return
false;
}
if(document.f1.area.value=="")
{
alert("Please enter Area"); document.f1.area.focus();return false;
}
if(document.f1.ocity.value=="- -Select a City- -")
{
alert("Please select a City "); document.f1.ocity.focus(); return false;
}
if(document.f1.ostate.value=="- -Select a State- -")
{
alert("Please select a State "); document.f1.ostate.focus(); return false;
}
if(document.f1.ocity.value!="Others") document.f1.city.value=document.f1.ocity.value; else document.f1.city.value=document.f1.city1.value;
if(document.f1.orcity.value!="Others") document.f1.rcity.value=document.f1.orcity.value; else document.f1.rcity.value
[PHP] submit button with attachment
dear all, hi! i have a php page by name diki.php which i have pasted below. i have removed the irrelevant code because of the size limit of the email. in this page is a submit button at the end. the form in which this button is placed is by "get" sent to p.php which has only the following contents: but when i click on submit button i am not getting connected to p.php. strange! any help would be greatly appreciated. thanks! best wishes from India. diksha. Registration Form function allow() { if(document.f1.ocity.value!="Others") document.f1.city1.blur(); } function allow1() { if(document.f1.orcity.value!="Others") document.f1.rcity1.blur(); } function rallow() { if(document.f1.ostate.value!="Others") document.f1.state1.blur(); } function rallow1() { if(document.f1.orstate.value!="Others") document.f1.rstate1.blur(); } function adjust() { pbus1=document.f1.pbus.options[document.f1.pbus.selectedIndex].value; if(pbus1=="accounting") { document.f1.interest1.checked=true; } if(pbus1=="advertising") { document.f1.interest2.checked=true; } if(pbus1=="agriculture") { document.f1.interest3.checked=true; } if(pbus1=="arts") { document.f1.interest4.checked=true; }
} function check(na) { var st=na;st1=st.length; for(i=0;i57)) { return false; break; } } } function checke(id) { r1=id; r2=r1.indexOf('@',0);r3=r1.indexOf('.',0); r4=r2+1; r6=r1.length -1; rlen1=r1.length; rcont=0; rstart=0; while(rstart 1) { return false; }
r5=r1.indexOf(null,r6); if((r1.indexOf('@',1)==-1)||(r2>r3)||(r3==r4)||(r3==r6)||(r1.indexOf("@",0)==-1)
||(r1.indexOf(".",0)==-1)) { return false;} } function validation() { if(document.f1.yname.value=="") { alert("Please enter your name");document.f1.yname.focus();return false; } if(document.f1.cname.value=="") { alert("Please enter company name");document.f1.cname.focus();return false; } if(document.f1.cat.value=="- -Select a Category- -") { alert("Please select Category ");document.f1.cat.focus(); return false; } if(document.f1.pbus.value=="- -Select Primary Business- -") { alert("Please select Primary Business ");document.f1.pbus.focus();return
false; } if(document.f1.bemail.value=="") { alert("Please enter business email");document.f1.bemail.focus();return
false; } else { cbemail=checke(document.f1.bemail.value); if(cbemail==false) { alert("Enter correct Business Email
Address");document.f1.bemail.focus();return false; } } if(document.f1.pemail.value=="") { alert("Please enter personal email");document.f1.pemail.focus();return
false; } else { cpemail=checke(document.f1.pemail.value); if(cpemail==false) { alert("Enter correct Personal Email
Address");document.f1.pemail.focus();return false; } } if(document.f1.pass.value=="") { alert("Please enter password");document.f1.pass.focus();return false; } else { if(document.f1.pass.value.length<4) { alert("Password should contain 4
characters");document.f1.pass.focus();return false; } } if(document.f1.badd1.value=="") { alert("Please enter business address");document.f1.badd1.focus(); return
false;
}
if(document.f1.area.value=="")
{
alert("Please enter Area"); document.f1.area.focus();return
false;
}
if(document.f1.ocity.value=="- -Select a City- -")
{
alert("Please select a City "); document.f1.ocity.focus();
return false;
}
if(document.f1.ostate.value=="- -Select a State- -")
{
alert("Please select a State "); document.f1.ostate.focus();
return false;
}
if(document.f1.ocity.value!="Others") document.f1.city.value=document.f1.ocity.value; else document.f1.city.value=document.f1.city1.value;
if(document.f1.orcity.value!="Others") document.f1.rcity.value=document.f1.orcity.value; else document.f1.rcity.value=document.f1.rcity1.value;
if(document.f1.ostate.value!="Others") document.f1.state.value=document.f1.ostate.value; else document.f1.state.value=document.f1.state1.value;
[PHP] javascriptdear all, hi! in my php script registration1.php, i have written javascript for form validation i.e. for checking if the mandatory fields are filled correctly or not. but on clicking the submit button, i get connected to the next page without the form getting validated!! i guess i have made a silly mistake somewhere but am not able to figure out where and what. attaching registration1.php. please help. thanks. regards, diksha. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] JAVASCRIPT
dear all, hi! in my php script registration1.php, i have written javascript for form validation i.e. for checking if the mandatory fields are filled correctly or not. but on clicking the submit button, i get connected to the next page without the form getting validated!! i guess i have made a silly mistake somewhere but am not able to figure out where and what. attaching registration1.php. please help. thanks. regards, diksha. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] JAVASCRIPT
dear all, hi! in my php script registration1.php, i have written javascript for form validation i.e. for checking if the mandatory fields are filled correctly or not. but on clicking the submit button, i get connected to the next page without the form getting validated!! i guess i have made a silly mistake somewhere but am not able to figure out where and what. attaching registration1.php. i tried to send the attachment with my previous mails. but they got delivered without the attachment! i hope this mail carries registration.php as well. sorry for the inconvenience. please help. thanks. regards, diksha. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] JAVASCRIPT
dear all, hi! in my php script registration1.php, i have written javascript for form validation i.e. for checking if the mandatory fields are filled correctly or not. but on clicking the submit button, i get connected to the next page without the form getting validated!! i guess i have made a silly mistake somewhere but am not able to figure out where and what. attaching registration1.php. i tried attaching this page a couple of time but it got delivered with the attachment! i am very sorry for the inconvenience caused to you all. please help. thanks. regards, diksha. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] JAVASCRIPT
dear all, hi! in my php script registration1.php, i have written javascript for form validation i.e. for checking if the mandatory fields are filled correctly or not. but on clicking the submit button, i get connected to the next page without the form getting validated!! i guess i have made a silly mistake somewhere but am not able to figure out where and what. pasting registration1.php below coz ultimately the attachment couldn't get delivered. i am very very sorry guys! please help. thanks. regards, diksha. Registration Form
function allow()
{
if(document.f1.ocity.value!="Others")
document.f1.city1.blur();
}
function allow1()
{
if(document.f1.orcity.value!="Others")
document.f1.rcity1.blur();
}
function rallow()
{
if(document.f1.ostate.value!="Others")
document.f1.state1.blur();
}
function rallow1()
{
if(document.f1.orstate.value!="Others")
document.f1.rstate1.blur();
}
function adjust()
{
pbus1=document.f1.pbus.options[document.f1.pbus.selectedIndex].value;
if(pbus1=="accounting")
{
document.f1.interest1.checked=true;
}
if(pbus1=="advertising")
{
document.f1.interest2.checked=true;
}
if(pbus1=="agriculture")
{
document.f1.interest3.checked=true;
}
if(pbus1=="arts")
{
document.f1.interest4.checked=true;
}
if(pbus1=="industry")
{
document.f1.interest5.checked=true;
}
if(pbus1=="auctions")
{
document.f1.interest6.checked=true;
}
if(pbus1=="automobiles")
{
document.f1.interest7.checked=true;
}
if(pbus1=="ayurvedic")
{
document.f1.interest8.checked=true;
}
if(pbus1=="beauty")
{
document.f1.interest9.checked=true;
}
if(pbus1=="books")
{
document.f1.interest10.checked=true;
}
if(pbus1=="building")
{
document.f1.interest11.checked=true;
}
if(pbus1=="chemicals")
{
document.f1.interest12.checked=true;
}
if(pbus1=="children")
{
document.f1.interest13.checked=true;
}
if(pbus1=="education")
{
document.f1.interest14.checked=true;
}
if(pbus1=="computer")
{
document.f1.interest15.checked=true;
}
if(pbus1=="consumer")
{
document.f1.interest16.checked=true;
}
if(pbus1=="electrical")
{
document.f1.interest17.checked=true;
}
if(pbus1=="recruitment")
{
document.f1.interest18.checked=true;
}
if(pbus1=="entertainment")
{
document.f1.interest19.checked=true;
}
if(pbus1=="fashion")
{
document.f1.interest20.checked=true;
}
if(pbus1=="finance")
{
document.f1.interest21.checked=true;
}
if(pbus1=="restaurant")
{
document.f1.interest22.checked=true;
}
if(pbus1=="foodprocessing")
{
document.f1.interest23.checked=true;
}
if(pbus1=="furniture")
{
document.f1.interest24.checked=true;
}
if(pbus1=="gift")
{
document.f1.interest25.checked=true;
}
if(pbus1=="homeproducts")
{
document.f1.interest26.checked=true;
}
if(pbus1=="internet")
{
document.f1.interest27.checked=true;
}
if(pbus1=="jewellery")
{
document.f1.interest28.checked=true;
}
if(pbus1=="law")
{
document.f1.interest29.checked=true;
}
if(pbus1=="leather")
{
document.f1.interest30.checked=true;
}
if(pbus1=="doctors")
{
document.f1.interest31.checked=true;
}
if(pbus1=="hospitals")
{
document.f1.interest32.checked=true;
}
if(pbus1=="surgical")
{
document.f1.interest33.checked=true;
}
if(pbus1=="metals")
{
document.f1.interest34.checked=true;
}
if(pbus1=="office")
{
document.f1.interest35.checked=true;
}
if(pbus1=="pharmacy")
{
document.f1.interest36.checked=true;
}
if(pbus1=="photography")
{
document.f1.interest37.checked=true;
}
if(pbus1=="machinery")
{
document.f1.interest38.checked=true;
}
if(pbus1=="security")
{
document.f1.interest39.checked=true;
}
if(pbus1=="sports")
{
document.f1.interest40.checked=true;
}
if(pbus1=="telecommunication")
{
document.f1.interest41.checked=true;
}
if(pbus1=="textiles")
{
document.f1.interest42.checked=true;
}
if(pbus1=="toys")
{
document.f1.interest43.checked=true;
}
if(pbus1=="travel")
{
document.f1.interest44.checked=true;
}
if(pbus1=="wedding")
{
document.f1.interest45.checked=t
[PHP] JAVASCRIPT
dear all, hi! in my php script registration1.php, i have written javascript for form validation i.e. for checking if the mandatory fields are filled correctly or not. but on clicking the submit button, i get connected to the next page without the form getting validated!! i guess i have made a silly mistake somewhere but am not able to figure out where and what. pasting registration1.php below coz ultimately the attachment couldn't get delivered. i am very very sorry guys! please help. thanks. regards, diksha. Registration Form
function allow()
{
if(document.f1.ocity.value!="Others")
document.f1.city1.blur();
}
function allow1()
{
if(document.f1.orcity.value!="Others")
document.f1.rcity1.blur();
}
function rallow()
{
if(document.f1.ostate.value!="Others")
document.f1.state1.blur();
}
function rallow1()
{
if(document.f1.orstate.value!="Others")
document.f1.rstate1.blur();
}
function adjust()
{
pbus1=document.f1.pbus.options[document.f1.pbus.selectedIndex].value;
if(pbus1=="accounting")
{
document.f1.interest1.checked=true;
}
if(pbus1=="advertising")
{
document.f1.interest2.checked=true;
}
if(pbus1=="agriculture")
{
document.f1.interest3.checked=true;
}
if(pbus1=="arts")
{
document.f1.interest4.checked=true;
}
if(pbus1=="industry")
{
document.f1.interest5.checked=true;
}
if(pbus1=="auctions")
{
document.f1.interest6.checked=true;
}
if(pbus1=="automobiles")
{
document.f1.interest7.checked=true;
}
if(pbus1=="ayurvedic")
{
document.f1.interest8.checked=true;
}
if(pbus1=="beauty")
{
document.f1.interest9.checked=true;
}
if(pbus1=="books")
{
document.f1.interest10.checked=true;
}
if(pbus1=="building")
{
document.f1.interest11.checked=true;
}
if(pbus1=="chemicals")
{
document.f1.interest12.checked=true;
}
if(pbus1=="children")
{
document.f1.interest13.checked=true;
}
if(pbus1=="education")
{
document.f1.interest14.checked=true;
}
if(pbus1=="computer")
{
document.f1.interest15.checked=true;
}
if(pbus1=="consumer")
{
document.f1.interest16.checked=true;
}
if(pbus1=="electrical")
{
document.f1.interest17.checked=true;
}
if(pbus1=="recruitment")
{
document.f1.interest18.checked=true;
}
if(pbus1=="entertainment")
{
document.f1.interest19.checked=true;
}
if(pbus1=="fashion")
{
document.f1.interest20.checked=true;
}
if(pbus1=="finance")
{
document.f1.interest21.checked=true;
}
if(pbus1=="restaurant")
{
document.f1.interest22.checked=true;
}
if(pbus1=="foodprocessing")
{
document.f1.interest23.checked=true;
}
if(pbus1=="furniture")
{
document.f1.interest24.checked=true;
}
if(pbus1=="gift")
{
document.f1.interest25.checked=true;
}
if(pbus1=="homeproducts")
{
document.f1.interest26.checked=true;
}
if(pbus1=="internet")
{
document.f1.interest27.checked=true;
}
if(pbus1=="jewellery")
{
document.f1.interest28.checked=true;
}
if(pbus1=="law")
{
document.f1.interest29.checked=true;
}
if(pbus1=="leather")
{
document.f1.interest30.checked=true;
}
if(pbus1=="doctors")
{
document.f1.interest31.checked=true;
}
if(pbus1=="hospitals")
{
document.f1.interest32.checked=true;
}
if(pbus1=="surgical")
{
document.f1.interest33.checked=true;
}
if(pbus1=="metals")
{
document.f1.interest34.checked=true;
}
if(pbus1=="office")
{
document.f1.interest35.checked=true;
}
if(pbus1=="pharmacy")
{
document.f1.interest36.checked=true;
}
if(pbus1=="photography")
{
document.f1.interest37.checked=true;
}
if(pbus1=="machinery")
{
document.f1.interest38.checked=true;
}
if(pbus1=="security")
{
document.f1.interest39.checked=true;
}
if(pbus1=="sports")
{
document.f1.interest40.checked=true;
}
if(pbus1=="telecommunication")
{
document.f1.interest41.checked=true;
}
if(pbus1=="textiles")
{
document.f1.interest42.checked=true;
}
if(pbus1=="toys")
{
document.f1.interest43.checked=true;
}
if(pbus1=="travel")
{
document.f1.interest44.checked=true;
}
if(pbus1=="wedding")
{
document.f1.interest45.checked=t
[PHP] file
hi all! i have a simple program to open and write a file. but the file is not getting created. can anyone please spot the mistake? giving the code below. thanks a lot, diksha. hii am fine"; $contents=fwrite($fp,string); echo "'$contents'"; fclose($fp); ?> ___ Odomos - the only mosquito protection outside 4 walls - Click here to know more! http://r.rediff.com/r?http://clients.rediff.com/odomos/Odomos.htm&&odomos&&wn -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] submit
hi all, seems to be and off day for me. simple things aren't working. have this really stupid thing called dew3.html in which is a submit button to connect to new6.php that will in turn create a file sandrew.html. but the submit button in dew3.html is seen but isn't working. help please. sending code for dew3.html. thanks, diksha. dew ___ Odomos - the only mosquito protection outside 4 walls - Click here to know more! http://r.rediff.com/r?http://clients.rediff.com/odomos/Odomos.htm&&odomos&&wn -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: Re: [PHP] submit
hi guys, yeah, i now believe this really is an off day for me. probably because i did not have food today! well, my problem is a really funny one. through dew4.html's submit button i want to get connect to new6.php from which should open a file. but as soon as i click on the submit button, i get "page cannot be displayed" . i dont know what to do. giving code for new6.php. tata, diksha. hii am fine"; $contents=fwrite($fp,string); echo "'$contents'"; fclose($fp); ?> ___ Odomos - the only mosquito protection outside 4 walls - Click here to know more! http://r.rediff.com/r?http://clients.rediff.com/odomos/Odomos.htm&&odomos&&wn -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] page cannot be displayed
hi guys, yeah, i now believe this really is an off day for me. probably because i did not have food today! well, my problem is a really funny one. through dew4.html's submit button i want to get connect to new6.php from which should open a file. but as soon as i click on the submit button, i get "page cannot be displayed" . i dont know what to do. giving code for new6.php. tata, diksha. hii am fine"; $contents=fwrite($fp,string); echo "'$contents'"; fclose($fp); ?> ___ Odomos - the only mosquito protection outside 4 walls - Click here to know more! http://r.rediff.com/r?http://clients.rediff.com/odomos/Odomos.htm&&odomos&&wn -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] writing file
dear all, hi! i have a php script from which i am creating an html file as under. my problem is that when i open aditya.html, i can see the variable values and "hi!". but when i want to put the value of $cname in the center of the screen by using div tag as: $cname i get a parse error. why is the div tag not working? regards, diksha. $fp = fopen ("aditya.html", "w"); $string=" aditya $cnamehi!$city $bemail"; $contents=fwrite($fp, $string); echo "'$contents'"; fclose($fp); ___ Odomos - the only mosquito protection outside 4 walls - Click here to know more! http://r.rediff.com/r?http://clients.rediff.com/odomos/Odomos.htm&&odomos&&wn -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] space
hi all! in an html file thru a php script, i have to put in some data. i am using variable $string to write the data as under. what i want to know is how can i ensure that the value of $badd1 and $area get written on different lines. in other words, i want to know how to use '\n' here. thanks, diksha. '; $string.=$badd1; $string.=$area; $string.=$city; $string.=' ___ Odomos - the only mosquito protection outside 4 walls - Click here to know more! http://r.rediff.com/r?http://clients.rediff.com/odomos/Odomos.htm&&odomos&&wn -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] image
dear all, hi! i am creating an html file through a php script. i am drawing a table in one of whose cells i want to include and image. but this image does not appear when i open the html page in internet explorer. i think the syntax is correct and the picture is very much present in the given destination. what can be the problem? thanks, diksha. '; $string.=$wname; $string.=' ___ Odomos - the only mosquito protection outside 4 walls - Click here to know more! http://r.rediff.com/r?http://clients.rediff.com/odomos/Odomos.htm&&odomos&&wn -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] alignment
dear all, hi! an html file is being created by my php script. i have used tables for the alignment of html file's text and images. i have an image and the value of variable $cname to be displayed in a cell. i want both of these items to appear on the same line. but what happens is the $cname value appears under the image in the center of the page. my question is "is there any way without nesting tables to ensure that my text will appear in the horizontal line same as that of the image?" the code is as under. thanks, diksha. '; $string.=$wname; $string.=' ___ Odomos - the only mosquito protection outside 4 walls - Click here to know more! http://r.rediff.com/r?http://clients.rediff.com/odomos/Odomos.htm&&odomos&&wn -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php