Client Side Things
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesClient Side Things

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #16  
Old November 4th, 2003, 08:46 AM
nazly nazly is offline
Codewalkers Beginner (1000 - 1499 posts)
 
Join Date: Apr 2007
Location: Colombo,SriLanka
Posts: 1,325 nazly User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 m 18 sec
Reputation Power: 3
Send a message via Yahoo to nazly
RE: Dependable combo boxes

Use it like this..

echo "<form name="frmmain" action="".$_SERVER["PHP_SELF"]."" method="post">";

Reply With Quote
  #17  
Old November 4th, 2003, 08:48 AM
CodeKadiya CodeKadiya is offline
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: Colombo,Sri Lanka
Posts: 2,313 CodeKadiya User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 4
Send a message via Yahoo to CodeKadiya
RE: Dependable combo boxes

php Code:
Original - php Code
  1.  
  2. $thisPage=$_SERVER["PHP_SELF"];
  3. echo("<form name="frmmain" action='$thisPage' method="post">");
  4.  

Reply With Quote
  #18  
Old November 4th, 2003, 08:57 AM
rsa_dude rsa_dude is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: South Africa
Posts: 29 rsa_dude User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to rsa_dude Send a message via AIM to rsa_dude Send a message via Yahoo to rsa_dude
RE: Dependable combo boxes

Nothing happens dosent do anything

Reply With Quote
  #19  
Old November 4th, 2003, 09:00 AM
nazly nazly is offline
Codewalkers Beginner (1000 - 1499 posts)
 
Join Date: Apr 2007
Location: Colombo,SriLanka
Posts: 1,325 nazly User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 m 18 sec
Reputation Power: 3
Send a message via Yahoo to nazly
RE: Dependable combo boxes

Quote:
and also now with two forms i still have to use a button i wanted to know on if it would load up on selection on the first box with out clicking a button.


Without using a submit button you can use bit of JavaScript to do this. You can submit the form for the onChange event of the combo box

<select name="cmb1" onChange="document.frmname.submit();">

Reply With Quote
  #20  
Old November 4th, 2003, 09:07 AM
rsa_dude rsa_dude is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: South Africa
Posts: 29 rsa_dude User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to rsa_dude Send a message via AIM to rsa_dude Send a message via Yahoo to rsa_dude
RE: Dependable combo boxes

I incorporated it in my function in the ie status bar it gives an error on page icon.

Function ExecutableList($Fieldname, $Default) {
//This function responds with a select statement.
//$Restriction is the division the customers belong to. 0 for all
echo(" <select name="$Fieldname"onChange="document.frmname.submit();">n");
echo(" <option value="-1"");
if ($Default == 0) {
echo(" selected");
}
echo(">Please Select Executable</option>n");

ibase_pconnect($_SESSION['dbpath'], $_SESSION['dbuser'], $_SESSION['dbpass']);
$qry = "SELECT EXENO, NAME FROM EXECUTABLES ORDER BY NAME";
$res = ibase_query($qry);
while ($resrow = ibase_fetch_row($res)) {
echo(" <option value="$resrow[0]"");
if ($resrow[0] == $Default) {
echo(" selected");
}
echo(">$resrow[1]</option>n");
}
echo("</select>n");
}

Reply With Quote
  #21  
Old November 4th, 2003, 11:35 AM
rsa_dude rsa_dude is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: South Africa
Posts: 29 rsa_dude User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to rsa_dude Send a message via AIM to rsa_dude Send a message via Yahoo to rsa_dude
RE: Dependable combo boxes

Finally I got it to work thank you nazly for all the help much appreaciated

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesClient Side Things > Dependable combo boxes


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT