[PHP] alignment

2003-04-06 Thread Diksha Neel
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.
table border=1 width=100% height=430
  tr
td width=100% colspan=2 height=61img 
src=C:\DocumentsandSettings\mangesh\My Documents\My 
pictures\crows_eating_md_wht.gif
  div align=centerh1u';
  $string.=$wname;
  $string.='/u/h1/div/td
  /tr

___
Odomos - the only  mosquito protection outside 4 walls -
Click here to know more!
http://r.rediff.com/r?http://clients.rediff.com/odomos/Odomos.htmodomoswn
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] image

2003-04-04 Thread Diksha Neel
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.
table border=1 width=100% height=430
  tr
td width=100% colspan=2 height=61img 
src=C:\Documents and Settings\mangesh\My Documents\My 
Pictures\sample.jpgdiv align=centerh1u';
  $string.=$wname;
  $string.='/u/h1/div/td
  /tr

___
Odomos - the only  mosquito protection outside 4 walls -
Click here to know more!
http://r.rediff.com/r?http://clients.rediff.com/odomos/Odomos.htmodomoswn
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] space

2003-04-03 Thread Diksha Neel
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.
tr
td width=24% height=76';
  $string.=$badd1;
  $string.=$area;
  $string.=$city;
  $string.='/td
  /tr
___
Odomos - the only  mosquito protection outside 4 walls -
Click here to know more!
http://r.rediff.com/r?http://clients.rediff.com/odomos/Odomos.htmodomoswn
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] writing file

2003-04-01 Thread Diksha Neel
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:
  div align=center $cname /div
i get a parse error.
why is the div tag not working?
regards,
diksha.
$fp = fopen (aditya.html, w);
$string=html
 headtitleaditya/title/headbodycentre
 h1u$cname/u/h1/centrehi!$city 
$bemail/body/html;
$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.htmodomoswn
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] file

2003-03-28 Thread Diksha Neel
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.
?php
echohi?how are u doing??;
$fp = fopen (sandrew.html, w);
string=htmlheadtitlehi/title/headbodyi am
fine/body/html;
$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.htmodomoswn
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] submit

2003-03-28 Thread Diksha Neel
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.
html
head
titledew/title
/head
body
form method=get action=new6.php
input type=button value=submit
/form
/body
/html
___
Odomos - the only  mosquito protection outside 4 walls -
Click here to know more!
http://r.rediff.com/r?http://clients.rediff.com/odomos/Odomos.htmodomoswn
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: Re: [PHP] submit

2003-03-28 Thread Diksha Neel


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.
?php
echohi?how are u doing??;
$fp = fopen (sandrew.html, w);
$string=htmlheadtitlehi/title/headbodyi am
fine/body/html;
$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.htmodomoswn
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] page cannot be displayed

2003-03-28 Thread Diksha Neel


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.
?php
echohi?how are u doing??;
$fp = fopen (sandrew.html, w);
$string=htmlheadtitlehi/title/headbodyi am
fine/body/html;
$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.htmodomoswn
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] submit button with attachment

2003-03-07 Thread Diksha Neel
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:
?php
echo hi;
?
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.
html
head
meta http-equiv=Content-Type content=text/html;
charset=windows-1252
meta name=GENERATOR content=Microsoft FrontPage 4.0
meta name=ProgId content=FrontPage.Editor.Document
titleRegistration Form/title
script language=JavaScript
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;ist1;i++)
   {
 if((st.charCodeAt(i)48)||(st.charCodeAt(i)57))
  { 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(rstartrlen1)
{
  rpos=r1.indexOf(@,rstart);
  if(rpos==-1)
break;
  rcont=rcont+1;
  rstart=rpos+1;
}
  if(rcont1)
{
return false;
}
r5=r1.indexOf(null,r6);
if((r1.indexOf('@',1)==-1)||(r2r3)||(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.length4)
  {
 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;
if(document.f1.orstate.value!=Others)
  document.f1.rstate.value=document.f1.orstate.value;
else
  document.f1.rstate.value=document.f1.rstate1.value;
if(document.f1.pin.value==)
   {
alert(Please enter the pin no.);
 document.f1.pin.focus();
  return false;
   }
if(document.f1.pin.value!=)
   {
if(document.f1.pin.value==0)
{
 alert(Please enter correct Pin code);
  

[PHP] javascript

2003-03-07 Thread Diksha Neel
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

2003-03-07 Thread Diksha Neel
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

2003-03-07 Thread Diksha Neel
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

2003-03-07 Thread Diksha Neel
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

2003-03-07 Thread Diksha Neel
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.
html

head
meta http-equiv=Content-Type content=text/html; 
charset=windows-1252
meta name=GENERATOR content=Microsoft FrontPage 4.0
meta name=ProgId content=FrontPage.Editor.Document
titleRegistration Form/title
script language=JavaScript
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=true;
   }

}
function check(na)
{
var st=na;st1=st.length;
for(i=0;ist1;i++)
   {
 if((st.charCodeAt(i)48)||(st.charCodeAt(i)57))
  { 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(rstartrlen1)
{
  rpos=r1.indexOf(@,rstart);
  if(rpos==-1)
break;
  rcont=rcont+1;
  rstart=rpos+1;
}
  if(rcont1)
{
return false;
}
r5=r1.indexOf(null,r6);
if((r1.indexOf('@',1)==-1)||(r2r3)||(r3==r4)||(r3==r6)||(r1.indexOf(@,0)==-1)||(r1.indexOf(.
,0)==-1))
  { return 

[PHP] JAVASCRIPT

2003-03-07 Thread Diksha Neel
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.
html

head
meta http-equiv=Content-Type content=text/html; 
charset=windows-1252
meta name=GENERATOR content=Microsoft FrontPage 4.0
meta name=ProgId content=FrontPage.Editor.Document
titleRegistration Form/title
script language=JavaScript
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=true;
   }

}
function check(na)
{
var st=na;st1=st.length;
for(i=0;ist1;i++)
   {
 if((st.charCodeAt(i)48)||(st.charCodeAt(i)57))
  { 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(rstartrlen1)
{
  rpos=r1.indexOf(@,rstart);
  if(rpos==-1)
break;
  rcont=rcont+1;
  rstart=rpos+1;
}
  if(rcont1)
{
return false;
}
r5=r1.indexOf(null,r6);
if((r1.indexOf('@',1)==-1)||(r2r3)||(r3==r4)||(r3==r6)||(r1.indexOf(@,0)==-1)||(r1.indexOf(.
,0)==-1))
  { return 

[PHP] submit button

2003-03-06 Thread Diksha Neel
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:
?php
echo hi how are u;
?
please help,
diksha.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] submit button

2003-03-06 Thread Diksha Neel
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:
?php
echo hi;
?
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

2003-03-06 Thread Diksha Neel
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:
?php
echo hi;
?
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

2003-03-06 Thread Diksha Neel
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:
?php
echo hi;
?
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

2003-03-06 Thread Diksha Neel
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:
?php
echo hi;
?
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.
html
head
meta http-equiv=Content-Type content=text/html; 
charset=windows-1252
meta name=GENERATOR content=Microsoft FrontPage 4.0
meta name=ProgId content=FrontPage.Editor.Document
titleRegistration Form/title
script language=JavaScript
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;ist1;i++)
   {
 if((st.charCodeAt(i)48)||(st.charCodeAt(i)57))
  { 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(rstartrlen1)
{
  rpos=r1.indexOf(@,rstart);
  if(rpos==-1)
break;
  rcont=rcont+1;
  rstart=rpos+1;
}
  if(rcont1)
{
return false;
}
r5=r1.indexOf(null,r6);
if((r1.indexOf('@',1)==-1)||(r2r3)||(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.length4)
  {
 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;
if(document.f1.orstate.value!=Others)
  document.f1.rstate.value=document.f1.orstate.value;
else
  document.f1.rstate.value=document.f1.rstate1.value;
if(document.f1.pin.value==)
   {
alert(Please enter the pin no.);
 document.f1.pin.focus();
  return false;
   }
if(document.f1.pin.value!=)
   {
if(document.f1.pin.value==0)
{
 alert(Please enter correct 

[PHP] registration

2003-03-05 Thread Diksha Neel
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 :

?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 ;
pre
echo
form
Login ID   font color=\red\* /fontinput 
name=\login\ value=\$login\ 
/form;
?

thanks,
diksha.


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] filesave

2003-03-04 Thread Diksha Neel
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 boxthat 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.html
THIS IS ENTRY.HTML
head
meta http-equiv=Content-Language content=en-us
meta http-equiv=Content-Type content=text/html; 
charset=windows-1252
meta name=GENERATOR content=Microsoft FrontPage 4.0
meta name=ProgId content=FrontPage.Editor.Document
titleUser Name/title
/head

body

form method=POST action=check.php
  !--webbot bot=SaveResults
  U-File=\\FORTUNESRV\common\diksha\_private\form_results.txt
  S-Format=TEXT/CSV S-Label-Fields=TRUE --
  pnbsp;/p
  pnbsp;/p
  pnbsp;nbsp;nbsp; User 
Namenbsp;nbsp;nbsp;nbsp;nbsp;nbsp; input type=text 
name=login size=20/p
  pnbsp;nbsp;nbsp; User Password input type=password 
name=pass size=20/p
  
pnbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;
  a href=regist.htmlSign in/a/p
  pnbsp;nbsp;nbsp; Not registered ?/p
  
pnbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;
  a href=regist.htmlSign up/a/p
  pnbsp;/p
  pnbsp;/p
  pnbsp;/p
  input type=submit value=validate me
/form
/body
/html

THIS IS CHECK.PHP
?php
 $connection=mysql_connect(localhost,root,)or die(Could 
not connect);
 print Connected successfullybr;
 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 $numbr;
 if($num==1)
  {
   echo PYou are a valid user!br;
  }
 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] formtext

2003-03-03 Thread DIKSHA NEEL
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:

html
head
title
/title
/head
/body
h1Business Directory Of India/h1
pre
?php
form
Please enter other login id:input type=text name=login
/form
echo pre;
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 /pre;
?
/body
/html
regards,
diksha.




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] formtext

2003-03-03 Thread DIKSHA NEEL
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:

html
head
title
/title
/head
/body
h1Business Directory Of India/h1
pre
?php
form
Please enter other login id:input type=text name=login
/form
echo pre;
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 /pre;
?
/body
/html
regards,
diksha.




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] entrycheck

2003-03-03 Thread Diksha Neel
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:
form method=POST action=check.php
User Nameinput type=text name=login
User Password input type=password name=pass
input type=submit value=validate me
/form
AND THE check.php code is as follows:

?php

$connection=mysql_connect(localhost,root,)or die(Could not 
connect);
print Connected successfullybr;
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 $numbr;
if($num==1)
{
echo PYou are a valid user!br;
}
 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] button not seen

2003-02-21 Thread DIKSHA NEEL
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, htmlheadtitlediksha/title/headbodyh1i 
solved problem!);
//fwrite($fp,/h1your login name is : $login/h1);
fwrite($fp,pre);
fwrite($fp,input type=button name=valid value=\Validate\);
fwrite($fp, /bodY/html);
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

2003-02-21 Thread DIKSHA NEEL
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

2003-02-21 Thread DIKSHA NEEL


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

2003-02-21 Thread DIKSHA NEEL
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] online tutorial

2003-02-19 Thread DIKSHA NEEL
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

2003-02-19 Thread DIKSHA NEEL


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] diksha's problem

2003-02-18 Thread DIKSHA NEEL
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

2003-02-18 Thread DIKSHA NEEL
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, htmlheadtitlediksha/title/headbodyh1i 
solved problem!/body/html);

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

2003-02-18 Thread DIKSHA NEEL
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

2003-02-18 Thread DIKSHA NEEL
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

2003-02-18 Thread DIKSHA NEEL
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