473,385 Members | 1,983 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

input type=submit

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
Jul 27 '05 #1
5 1783
sentinel wrote:
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>
Jul 27 '05 #2
On 27/07/2005 13:29, sentinel wrote:

[snip]
</forum>


forum?

That happens with both forms.

[snip]

Mike

--
Michael Winter
Prefix subject with [News] before replying by e-mail.
Jul 27 '05 #3
sentinel wrote:

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
Jul 27 '05 #4
ASM
sentinel wrote:
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="<?php print "forumi.php?ui=".$_GET['ui']; php?>"
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 ? </forum> ? here is your error, change with </form>
<td>
second error : the table must be all of it in the form

<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>
huu ? again : </forum> !
</tr>
</table>


--
Stephane Moriaux et son [moins] vieux Mac
Jul 27 '05 #5
> > <td>

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
Jul 29 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Victor A. Cuya | last post by:
Hello all, I have been trying to solve an annoying behavior with PHP (I think). Maybe some of you have encountered the same and have some ideas. I have an html form and I use an <input...
3
by: Obscurr | last post by:
hi, I've got a submit button, and when one clicks it, I want a confirm box to pop up to make sure the user really wants that. The user is supposed to be redirected to another url if he presses...
15
by: Mattia | last post by:
Hi! I have a <form> that can be submitted thruogh three buttons and I need to tell witch one was pressed when the form was submitted. I now do it with 3 <input type="submit" name="..."...
7
by: Bosconian | last post by:
I have a simple search form inside a table with 2 selects and text and submit inputs. When entering a string into the text input and hitting return (without tabbing to and clicking "Submit") the...
3
by: Taras_96 | last post by:
Hi everyone, I've got a rather unconventional architecture that I'm having problems with... I have a form called "searchForm", that has an input of type "submit" (with name = "submitButton...
6
by: Chiara Bassini | last post by:
Ciao a tutti, qualcuno mi sa dire come faccio ad impostare il padding su un input submit con explore 6? Se faccio: <input type="submit" name="prova" value="Prova d'impostazione padding"...
0
by: bolinc | last post by:
I have some code and right now it has a submit button. Users select a date and region (state, country, etc.) and when both are selected they press the button and whamo. What I want to do is if they...
1
nathj
by: nathj | last post by:
Hi, I really need some help with this as I've been looking at it for over a day now and I'm sure its really simple. The problem is that I have 3 forms each of which posts to thankyou.php. The...
3
by: shivraj Parshene | last post by:
<a href="abc.php"><input name="logout" value="Logout to Change Name" type="submit" ></a> it's not working in IE but works in Mozilla
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.