passing more than one values to php file

Thread Solved

Join Date: Sep 2008
Posts: 25
Reputation: mohammed2raja is an unknown quantity at this point 
Solved Threads: 1
mohammed2raja mohammed2raja is offline Offline
Light Poster

passing more than one values to php file

 
0
  #1
Sep 19th, 2008
window.location.href = "updateReg.php?idValue=" + idValue;
in the above code, I pass just one value "idValue", can i Pass more than one value like this?
Reply With Quote Quick reply to this message  
Join Date: Sep 2008
Posts: 2
Reputation: a-scripts.com is an unknown quantity at this point 
Solved Threads: 1
a-scripts.com a-scripts.com is offline Offline
Newbie Poster

Re: passing more than one values to php file

 
0
  #2
Sep 19th, 2008
hey,
you can pass as many variables as you like.. for example

page.php?var1=value1&var2=value2&var3=value3

this way you can access these variables on page.php
$_GET['var1], $_GET['var2'] and $_GET['var3']
Last edited by a-scripts.com; Sep 19th, 2008 at 7:50 am.
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 1,073
Reputation: Shanti Chepuru is on a distinguished road 
Solved Threads: 98
Shanti Chepuru's Avatar
Shanti Chepuru Shanti Chepuru is offline Offline
Veteran Poster

Re: passing more than one values to php file

 
0
  #3
Sep 19th, 2008
yes
like this:
  1. window.location.href='updateReg.php?idValue='+idValue+'&idValue2='+idValue2;
Last edited by Shanti Chepuru; Sep 19th, 2008 at 7:52 am.
Be intelligent, But Don't try to cheat.. Be innocent But Don't get cheated..
Reply With Quote Quick reply to this message  
Join Date: Sep 2008
Posts: 25
Reputation: mohammed2raja is an unknown quantity at this point 
Solved Threads: 1
mohammed2raja mohammed2raja is offline Offline
Light Poster

Re: passing more than one values to php file

 
0
  #4
Sep 19th, 2008
Originally Posted by Shanti Chepuru View Post
yes
like this:
  1. window.location.href='updateReg.php?idValue='+idValue+'&idValue2='+idValue2;
Thanks
Reply With Quote Quick reply to this message  
Join Date: Sep 2008
Posts: 25
Reputation: mohammed2raja is an unknown quantity at this point 
Solved Threads: 1
mohammed2raja mohammed2raja is offline Offline
Light Poster

Re: passing more than one values to php file

 
0
  #5
Sep 19th, 2008
Originally Posted by a-scripts.com View Post
hey,
you can pass as many variables as you like.. for example

page.php?var1=value1&var2=value2&var3=value3

this way you can access these variables on page.php
$_GET['var1], $_GET['var2'] and $_GET['var3']
Thanks
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 1,073
Reputation: Shanti Chepuru is on a distinguished road 
Solved Threads: 98
Shanti Chepuru's Avatar
Shanti Chepuru Shanti Chepuru is offline Offline
Veteran Poster

Re: passing more than one values to php file

 
0
  #6
Sep 19th, 2008
solved???

make this thread solved......
Be intelligent, But Don't try to cheat.. Be innocent But Don't get cheated..
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the PHP Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC