Need assistance with some code
HI, here is a jumpbox menu that is on my guestbook, id like to add a link from the jumpbox to another page of my site, any idea what i need to do that would be fairly straightforward
<?php
function generate_JumpMenu() {
$menu_array[] = \"<select name=\\"entry\\"
class=\\"select\\">\";
$menu_array[] = \"<option value=\\"0\\"
selected>\".$this->db->LANG[\"FormSelect\"].\"</option>\";
if ($this->db->VARS[\"entries_per_page\"]
< $this->total) {
$remain = $this->total %
$this->db->VARS[\"entries_per_page\"];
$i = $this->total-$remain;
while ($i > 0) {
$num_max = $i;
$num_min =
$num_max-$this->db->VARS[\"entries_per_page\"];
$num_min++;
$menu_array[] =
\"<option value=\\"$remain\\">$num_min-$num_max</option>\";
$i = $num_min-1;
$remain += $this->
db->VARS[\"entries_per_page\"];
}
}
$menu_array[] = \"</select>\";
$menu_array[] = \"<input type=\
\"submit\\" value=\\"\".$this->db->LANG
[\"FormButton\"].\"\\" class=\\"input\\">\";
return $menu_array;
?>
Cymru am byth
druagord posted this at 22:16 — 21st July 2003.
He has: 335 posts
Joined: May 2003
From the little i can see here you should be able to add a row in the database.But i don't know what the form do on submit and i don't know what is in the database so it's just a guess
IF , ELSE , WHILE isn't that what life is all about
necrotic posted this at 00:56 — 22nd July 2003.
He has: 296 posts
Joined: May 2002
You'd either have to add an OnChange JS function to the select form, or add a row in the database with the value corresponding to the link wanted. If I knew more about the script you're using it would be easier to help.
[James Logsdon]
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.