473,320 Members | 1,930 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,320 software developers and data experts.

select from radio button + enter username = open user profile

Hi

I have 4 radio buttons. each button to determine which page to go to. But
before page open user enters username in a text box. So when submitted, Page
opens relevant to that user displaying selected page.

I have no idea how to achieve this, and a good example would be greatly
appreciated.
Page 1: <radio button> >>>>>>>>>> this page to go to page1.php (this is a
table of user records 1)
Page 2: <radio button> >>>>>>>>>> this page to go to page2.php (this is a
table of user records 2)
Page 3 :<radio button> >>>>>>>>>> this page to go to page3.php (this is a
table of user records) 3
Page 4: <radio button> >>>>>>>>>> this page to go to page4.php (this is a
table of user records 4)

Enter Username: [text box] >>>>>>>> any user with their username

[submit]
Result should be :

If User FAB5 selects radio button 1 >>>>>>>>>. to display FAB5's page1.php

Thank you

Jul 17 '05 #1
3 3864
M.E. wrote:
Result should be :

If User FAB5 selects radio button 1 >>>>>>>>>. to display FAB5's page1.php

Thank you


Put the username box first, then the radio checkboxes. And for each
checkbox, put a javascript with onClick=document.form.submit. (or something
like this).

Of course, you should check that the username is not empty. (can be done
with javascript or with php).
--
marius

http://marius.me.uk/
Free your mind; the rest will follow.
Jul 17 '05 #2
M.E. wrote:
I have 4 radio buttons. each button to determine which page to go to. But
before page open user enters username in a text box. So when submitted, Page
opens relevant to that user displaying selected page.

I have no idea how to achieve this, and a good example would be greatly
appreciated.


Submit the form to

<?php
$new_page = false;
if (isset($_POST['radio1']))
$new_page = '/page1.php?user=' . $_POST['username'];
// same thing for page2, page3, and page4
if ($new_page) {
header('Location: ' . $full_url . $new_page);
exit('Redirected <a href="' . $full_url . $new_page . '">here</a>.');
}
// error message
?>
--
--= my mail box only accepts =--
--= Content-Type: text/plain =--
--= Size below 10001 bytes =--
Jul 17 '05 #3
Thank you great help to me.
"Pedro Graca" <he****@hotpop.com> wrote in message
news:c2*************@ID-203069.news.uni-berlin.de...
Jul 17 '05 #4

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

Similar topics

1
by: JT | last post by:
I have an input form for which I've created a "matrix" for user input. Basically, the user chooses a radio button and then through javascript, a select box is displayed to define a value for that...
4
by: bobsawyer | last post by:
I've been building a series of SELECT lists that are populated dynamically using HTTPRequest. Things are going pretty well, and I've got the whole thing working flawlessly in Mozilla/Firebird....
1
by: Joe Attardi | last post by:
Hi all, On a form on one of my pages I have two <select> elements, and each one is paired up with a radio button. The idea is to choose an item from one list or the other and select the radio...
0
by: Sid DeLuca | last post by:
I'm modifying the WSE2 HOL sample to develop my web service. I'm able to get the client application's username token encrypted on the way out (outputTrace.webinfo), but not on receipt from the...
2
by: SFM | last post by:
I just want a simple datareader, that i can read the value returned from a select statement executed on a SQL server 2005 db. The code below should work in, but email= rdr.ToString(); when i...
16
by: Richard Maher | last post by:
Hi, I have this Applet-hosted Socket connection to my server and in an ONevent/function I am retrieving all these lovely rows from the server and inserting them into the Select-List. (The on...
1
by: runway27 | last post by:
hi i have registration form where user selects from a drop down to select their area code apart from filling other details in the form. in the next page which is a confirmation page i would like...
2
by: runway27 | last post by:
i am using a self submitting form <form action="<?php echo $_SERVER; ?>" method="POST" id="test2" name="test1"> i need to do a validation of textfields, checkboxes, radio buttons i am able...
2
by: shapper | last post by:
Hello, I know that only authenticated users has a UserName. In Anonymous users there is an ID. If I am not wrong when getting a profile of a user, if the user is authenticated the UserName is...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
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
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.