Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> PHP
Author Message
Donovan
Client



Joined: Oct 07, 2003
Posts: 735
Location: Ohio

PostPosted: Fri Sep 29, 2006 8:57 pm Reply with quote

Can't post the code.

It wont let me.
 
View user's profile Send private message Visit poster's website ICQ Number
montego
Site Admin



Joined: Aug 29, 2004
Posts: 9457
Location: Arizona

PostPosted: Sat Sep 30, 2006 6:59 am Reply with quote

Have you tried onChange?

_________________
Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
montego







PostPosted: Sat Sep 30, 2006 7:00 am Reply with quote

This is what NukeSentinel uses in admin/modules/nukesentinel/functions.php in the ABLoadDataMenu function in case you need an example.
 
gregexp
The Mouse Is Extension Of Arm



Joined: Feb 21, 2006
Posts: 1497
Location: In front of a screen....HELP! lol

PostPosted: Sat Sep 30, 2006 9:38 am Reply with quote

Is this an onchange code written in php that youd like?
or a javascript code?

_________________
For those who stand shall NEVER fall and those who fall shall RISE once more!! 
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
Donovan







PostPosted: Sat Sep 30, 2006 10:24 am Reply with quote

php would be fine.

I will check out the NukeSentinal example.

Thanks
 
Donovan







PostPosted: Sat Sep 30, 2006 10:30 am Reply with quote

Trying somehing like this.

Code:
<select name="move" onChange="Movement.submit();">

<option value="">-------Choose a Selection-------</option>
<option value="Move.php">Move</option>
<option value="Attack.php">Attack</option>
<option value="MoveAttack.php">Move and Attack</option>
</select>
 
Donovan







PostPosted: Sat Sep 30, 2006 10:42 am Reply with quote

This seems to work, but I can't seem to get to the pages I need.

Code:
<form action="<?php echo $_SERVER['PHP_SELF'] ?>" method="POST">

<center><b>Commanders Menu<br>
<select name='move' SIZE='4' onChange='submit()'>
<option value="">-------Choose a Selection-------</option>
<option value="Move.php">Move</option>
<option value="Attack.php">Attack</option>
<option value="MoveAttack.php">Move and Attack</option>
</select>
</center>
</form>


Sorry, that module file was not found.

I don't have an $op to work with to direct php to the correct page.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> PHP

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©