input type=submit

S

sentinel

Here is the code



<table border="0" cellpadding="0" cellspacing="1">
<tr>
<td><form action=<?php print "\"forumi.php?ui=".$_GET['ui']."\""; ?>
method="POST"><input type="submit" value="Forum Root"
style="background-color: #333333; color: #FFFFFF; font-weight: normal;
font-size: 11pt; font-family:Trebuchet MS; border:1px solid
#000000"/></forum></td>

<td><form action="login.php" method="POST"><input type="submit"
value="Odjava" style="background-color: #333333; color: #FFFFFF;
font-weight: normal; font-size: 11pt; font-family:Trebuchet MS;
border:1px solid #000000"/></forum></td>
</tr>
</table>


Here is the problem

When the user clicks the first button everything happens as it should
but when user clicks the second button - 'action=forumi.php?....' is
used instead 'action=login.php'


thanks for help


Tomislav
 
S

sentinel

sentinel said:
Here is the problem

When the user clicks the first button everything happens as it should
but when user clicks the second button - 'action=forumi.php?....' is
used instead 'action=login.php'
no need to answer, i just had to post this problem to see that as
allways the sollution is to correct the typo...


T
 
J

Jedi Fans

sentinel said:
Here is the code



<table border="0" cellpadding="0" cellspacing="1">
<tr>
<td><form action=<?php print "\"forumi.php?ui=".$_GET['ui']."\""; ?>
method="POST"><input type="submit" value="Forum Root"
style="background-color: #333333; color: #FFFFFF; font-weight: normal;
font-size: 11pt; font-family:Trebuchet MS; border:1px solid
#000000"/></forum></td>

<td><form action="login.php" method="POST"><input type="submit"
value="Odjava" style="background-color: #333333; color: #FFFFFF;
font-weight: normal; font-size: 11pt; font-family:Trebuchet MS;
border:1px solid #000000"/></forum></td>
</tr>
</table>


Here is the problem

When the user clicks the first button everything happens as it should
but when user clicks the second button - 'action=forumi.php?....' is
used instead 'action=login.php'


thanks for help


Tomislav
end tags </forum> should be </form>
 
A

ASM

sentinel said:
Here is the code
<table border="0" cellpadding="0" cellspacing="1">
<tr>
<td><form action=<?php print "\"forumi.php?ui=".$_GET['ui']."\""; ?>

and like that ?

action= said:
method="POST"><input type="submit" value="Forum Root"
style="background-color: #333333; color: #FFFFFF; font-weight: normal;
font-size: 11pt; font-family:Trebuchet MS; border:1px solid
#000000"/></forum></td>

huu ? said:

second error : the table must be all of it in the form
 
S

sentinel

second error : the table must be all of it in the form
whell the typo i saw as soon as i posted the question

but the table doesn't need to be inside <form></form>
instead any submit button thet is inside <form></form> will do the same
action


Tom
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,906
Latest member
SkinfixSkintag

Latest Threads

Top