Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    PHP


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





Unwanted URLs In URL Dropdown Menu


I'm working on a PHP script and it has a user login, and the variables (username, password, id number) are passed via the URL bar. Is it possible to somehow not allow the visited page show up in the dropdown list of URLs in the browser? The problem is that people can view the list and easily see people's usernames and passwords. Example:

http://www.somesite.com?username=john&password=12345 What I only want is:
http://www.somesite.com/

I know that Hotmail.com doesn't show all of the pages that have been visited, all it shows in the list is hotmail.com, so I think it is possible to do this, but I don't know how.




View Complete Forum Thread with Replies

Related Forum Messages:
[PEAR:QuickForm] Dynamically Change A Dropdown Menu According To Another Menu?
I've been using QuickForm for a few months now and I am now given a
new challenge:

I've got a search form with a dozen of dropdown menus, the first
dropdown menu being "Brand". If you select either Brand A, B, C, D...
Z, the second dropdown menu "Model" must be dynamically changed to
model AA, AB, AC, AD..., according to the models manufactured by the
brand selected in the first box.

I've seen that done on quite a few sites, but never found if QuickForm
had a quick & clean way of doing that.

View Replies !
Dropdown Menu
i seem to be having some problems on finding how this ajax drop down menu i seen at Anime-Eden.com.

it has a nice effect on how it appears. Now i am familar on how PLAIN drop down menu works, but not how this works.

View Replies !
Use A Dropdown Menu
I have a list of contacts which are sorted by name. I was hoping to create a dropdown menu in which someone can sort the list of contacts by office, city, state, and contact type. Is this possible? (I am sure it is, but I am not sure what the concept is called so I may research how to do it).

View Replies !
Advanced Dropdown Menu
I want to populate a dropdown menu with countries that are in one column of my table. I know how to do that, but I can't find how to eliminate multiple items. Some countries appear several times in different rows, but I only want each available country to be shown once in my dropdown list.

View Replies !
Mysql / Dropdown Menu
what i am trying to do is to make a system with a few input pages and edit and read pages..

so right now i got the input/edit/read pages working. (yay) But now I want to have on 1 input page a dropdown menu that reads its information from the database. and that if i go to the page i can select a value out of the db and submit that inside my form and that it reminds the value if i view or edit the page.

So what i got now is a little system that is able to add/remove/edit a value inside a field called "drop01"

Well now i got a other input page called "input01.php" inside this script i want to have the dropdown menu that reads its values from the "drop01" field. PHP Code:

View Replies !
Autoselecting A Value In A Dropdown Menu
I'm revamping my sites administration panel and I put in a dropdown menu to select the section to administrate (it was a LOT better than the list of links I had before, I'll probably update it some more though) and I want to know how I can autoselect whatever page I'm on in the dropdown menu, for example, here's the menu: Code:

View Replies !
Multiple Dropdown Menu
i attemp to design a drop down menu that call up data from a table for each drop down menu. Code:

View Replies !
Dynamic Dropdown Menu
with help from the PHP Gurus here, I have a dynamic menu script:

PHP Code:

<?php
$time = time() + 28800;
$time_plus2 = strtotime('+ 6 days');

echo '<select name="select">'
while ($time <= $time_plus2)
{
    echo '<option value=>' . date('l, F d', $time) . '</option>'
    $time = strtotime(date('Y-m-d', $time) . ' + 1 day');
}
echo '</select>'
?>

how do I now get the days of the week to link to different pages?

View Replies !
Assigning A Dropdown Menu
how i can assign a drop down menu value to a session variable.

View Replies !
Values From DB Into A Dropdown Menu?
Here's my database which shows which type of cards have been issued to a football player in my database: Code:

View Replies !
Populating Dropdown Menu From Db
Okay, I am trying to populate a drop down menu with items from a table in my db. I have a table called "teacher" which has the following info: I use the following code to grab the info from the teacher table. Code:

View Replies !
Dropdown Menu Updates
I have seen this on lot of sites, where say you goto a car site, and you click the make of the car from a drop down menu, and than after u click it, it will load up the appropriate models for that make.

View Replies !
2 Questions. Dropdown Menu And # Of Rows.
1. I have a table named pics and a column named name, just to let you know for use. I want to take the data from each row in the name column and insert it into a dropdown menu.

I know how I could do it, but I would have to go:

Code:
<SELECT NAME="name" SIZE="1">
<OPTION SELECTED><?php $name[10 ?>
<OPTION><?php $name[1] ?>
<OPTION><?php $name[2] ?>
<OPTION><?php $name[3] ?>
<OPTION><?php $name[4] ?>
<OPTION><?php $name[5] ?>
<OPTION><?php $name[6] ?>
</SELECT>
but then I could make too many or too less. I want it to automatically adjust to the number of rows.

2.What is the code needed to find out how many rows are in a table?

View Replies !
Dropdown Menu Without Submit Button
How do I get a dropdown menu to submit with the selection of an option rather than pushing the submit button.?

View Replies !
Searching Database With Two Dropdown Menu
I have searched the whole forum for the script. Please let me know if there is any script .

View Replies !
Make A Dropdown-menu Filter?
I have a dropdown menu which is supposed to filter a table to show results for professionals, students or all. But I don't really know what I'm doing.  This is what I have so far. Code:

Initially, I was able to filter for students or professionals, but since trying to have an all option (students and professionals) it has gone to pot, and I keep getting errors.  I know that my quotation marks are not right, but I can't think of a solution. I would be more than happy to see any ideas, even if they are completely different to mine!

View Replies !
Query From Db, Add Values In Dropdown Menu
i wanted to query my db, and then add values to drop down menu, where when they select what they want in the dropdown, it will bring them to another page accounts.php where they will have more options.

View Replies !
Dropdown Menu <selected Name="...
I have a dropdown menu like this one:

<select name="country" tabindex="6" id="select_country">
<option value="">- Country List -</option>
<?php 
$query = "SELECT * FROM country ORDER BY country ASC";
$result = mysql_query($query) or die('Error, query failed');
while ($row = mysql_fetch_array ($result)) {
$country = $row['country']; ?>
<option value="<?php echo $country ?>"><?php echo $country ?></option>

After I have selected one country and I hit the submit button it go back to the default value in the box, what I want is to show the selected value in box until I selected another value.

If the default value is Australia when I start this page, I then select USA and hit the submit button it reset to the default value "Australia", but I want it to show USA as long I not select anything else. I have tried to use session in selected="<?php echo $_SESSION['country']; ?>" but it didnt work.

View Replies !
Trying To Create Dropdown Menu From List
I am trying to create a dynamic dropdown select menu from a directory containing other directories and files. This is to select a certain page from the list so I can edit it. I only want the files in the menu. Here's what I have so far but it doesn't populate the dropdown. Code:

View Replies !
Selecting Item In Dropdown Menu
Im having problems trying to select a specific option in the drop down menu which has been populated with a list pulled from the 'category' table in the db. The option that needs to be selected is pulled from an id in a 'item' table, relating to the aformentioned category table.

View Replies !
Dynamic Dropdown Menu Glitch
I wrote this code to dynamically generate an array from files on my server and put it into a drop down menu, but the code cannot be inserted on any page anywhere without it cancelling the loading of the rest of the page. Any ideas? Here is the code: PHP Code:

<? $the_array = Array();
$handle = opendir('walrus/strips/.');
while (false !== ($file = readdir($handle))) {
   if ($file != "." && $file != "..") {
$file = substr($file, 0, -4);
$the_array[] = $file;
   }
}
closedir($handle);
asort ($the_array);
reset ($the_array);.....


View Replies !
Network Bar, Dynamic, Dropdown Menu
Basically I have a "network bar" that I place on the top of all my sites, which has a dropdown menu box to interlink all my other sites. Basically I would like to really modify this idea out more. Code:

View Replies !
Tree View Dropdown Menu
I have such a categories MySQL table: ID | name | parent and have such a function that displays the categories in a SELECT element as a drop-down menu:

function DD_ProjectCategories($parent=0) {
include("db.php");
$query = "SELECT ID,name FROM categories";
$result = mysql_query($query) or die(mysql_error());
echo '<select name="parentcategory">'
echo '<option value="">Choose a parent category</option>'
echo '<option value="0">Root Category</option>'
while ($row = mysql_fetch_array($result)) {
echo "<option value="$row[0]""; if ($parent == $row[0]) {echo " selected"; } echo ">$row[1]</option>";
}
echo "</select>";
unset($query,$result,$row);
}.....

View Replies !
Change List View To Dropdown Menu
Im working on a script that has to be change so a user can choose from a dropdown menu instead of a list that now is displayed.
Here is the part that is insert on the index page.

View Replies !
How To Pass The Value Of Selected Dropdown Menu To Another File?
there is a php-myql script that list the mysql databases in the drop-down menu, use wil select one and the submit button should pass the value or variable $db_name to the test.php, this script list the databases in the drop-down menu but when i select one and then click on submit cannot pass the db_name to the test.php:

View Replies !
Stuck On Dropdown Menu List, Could Use Some Guidence
I have a form with some drop down list/menus. I do a check for ommissions and if found display a message to re-try. What I need is a way to show which options where chosen when the user submitted the form the first time.

If someone could show me how to do the first one, I'm sure it's the same process for the second one. Here's the code:

View Replies !
Duplicates In A Dropdown Menu Populated From My Database
I've been searching to figure out how not to have duplicates in a dropdown menu populated from my database. This is what I have, but how do I change it to get rid of duplicates.

<?php
$result = mysql_query("SELECT City FROM residential order by City");
echo "<select MULTIPLE NAME="City_code">";
while($row = mysql_fetch_array($result)){

echo "<option name="City" value="$row[City]">$row[City]</option>";

}
?>
</select>

View Replies !
Pagination And Dropdown Menu Used In Searching Mysql
I am working on building a database made for searching. I have a text search and a dropdown box used for searching different table collumns (lets people search for certan criteria). I have that working correctly.

I also only want to show 25 results per page. I have that working correctly. My problem is that when I combine the two it breaks the code. The pagination works fine without the dropdown and vice versa. I think it is due to the variable that is being used to choose the collumn in the sql query. Code:

View Replies !
Choose From A Dropdown Menu Of Encryption/decryption Cyphers
I've written a php page which allows users to type in a text string and a key, then choose from a dropdown menu of encryption/decryption cyphers, and a method (encrypt, decrypt). The whole thing works, except the mcrypt command doesn't work. here is my mcrypt command:

if ($method == 0) {
//Encrypt
$output = mcrypt_ecb ($algorithm, $key, $input, MCRYPT_ENCRYPT);
} else {
//Decrypt
$output = mcrypt_ecb ($algorithm, $key, $input, MCRYPT_DECRYPT);
}

Here's a list of what the variables may be:

$algorithm = MCRYPT_3DES
$key = "plain text"
$input = "more plain text"

View Replies !
Got The Dropdown Menu Populated From MySQL, But Not The Results After Submit
I have a dropdown menu populated from the MySQL database in a form. When I hit submit I want the results of the selection to be displayed. Code:

View Replies !
Populating "Month" Dropdown Menu
I can get the current month to display in a text box by inserting
value="<? print strftime("%B"); ?>"> into the code for that
particular text box on a form but how can I populate a drop down with
names of all the months with the current one being 'default' as it
would be in the text box example?

View Replies !
Chain Menu But The Menu Should Be Multiple Select Menu/list
I am looking for codes to be able to do the same thing with multiple select menu/list.

PHP codes or javascripts codes are both fine.

1) javascript + php approach: Prefer to be javascripts codes to display the chain menu. I can use the php to get the all three levels menu data from the database, and assign these values to the javascript.

2) php codes only: Or use the pure php codes (the problem is if just using php codes then I have to submit the form to the server every time, when top level menu select changes to create new menu.).

View Replies !
Suggestion On Ways To Make SEF Urls (search Engine Friendly Urls)
I'm trying to create search engine friendly urls for my site. The site structure looks something like this:

Category1
-Article1
-Article2
-Product1
-Sub-catetory
--Article3
--Article4
--Product2
--Quiz1
Category2
-Article5
-Quiz2

Basically, there are 2 levels of categories and there can be an Article, a Product or a Quiz at any level. I need the URLs to look like folders. Code:

View Replies !
Dynamic Dropdown And Hardcode Dropdown In Select Form
I have plenty of examples of dynamic dropdown choices but none of hardcoded dropdown choices. The ultimate goal is to have a job with various tasks and to track the status of those tasks for a given job. I've used one of the tutorials here to begin the process. Below is the code I have to add work on a given task. Perhaps I actually need to "Update" a job as opposed to "add".

But the problem of the moment is I can't seem to hardcode one set of my options. This is the code I have: PHP Code:

View Replies !
Convert Dynamic Php Urls To Html Urls
tell me or give me an online tool which can help me to convert php dynamic urls to html urls to make a google friendly site.I dont have apache server on my computer and I dont want to use it.Wihtout apache server is it possible? And I amusing windows server
and not Linux.

View Replies !
Unwanted Url Info
I have included session_start() function in the heder file which is included in every page in my site. Now i see some sort query string

PHPSESSID=33d36dcd4ba50a9fec33fb8188d2098d.

at the end of the page url. why this is automatic inclusion occuring and how to make url's free of this kind of unwanted query strings?

View Replies !
Fread() Giving Unwanted 's
I am using the following line to read a file

$contents = fread ($fd, filesize ($filename));

I edit the $contents in a textarea and send it through a form in a string and when it writes the new string to the file it adds 's.

for example:

<BODY TEXT="#FFFFFF" BGCOLOR="#010258" LINK="#99CCFF" ALINK="#99CCFF" VLINK="#6699FF">
<FONT FACE=\"BankGothic Lt BT\>Click Back on your Browser to return to the Item Description</font>
<P><IMG SRC="A-01-0041z.jpg"

Can someone lead me in the direction to find a way to remove these slashes? a function?

View Replies !
Additional Unwanted Characters
I have a PHP email list system, and it has suddenly stopped working properly. What is happening is when it attempts to scan the list for already subscribed email addresses it is not recognizing any of them as there. When I us VI in Linux to read the list file, I see an extra character at the end of the line "^M", what the heck is this character? The lines which add email addresses to the list use the following:

fputs($FilePointer, "
$email");

I beleive the ^M is a hard line break, but when I use the same fputs in another script it doesn't include that ^M, any ideas where this is coming from? I might be able to get it to workout if I could figure out how to replicate the ^M, but it isn't the actual characters ^M, it looks like when you push Ctrl and a letter, but when I puch Ctrl and M it creates a line break, and no ^M.

View Replies !
Random Unwanted Html
I am getting two > characters and i really can't understand why they
are there -

see http://www.jonwhittlestone.co.uk/po...AddProperty.php

It is driving me mad - here is all the code, sorry it's long

I'd appreciate it so much if someone would tell me why i'm getting
this error.

---the code----
<?php
session_start();
include("header.php");
include("databaseFunctions.php");
?>

<P>Please fill in all fields below (fields marked * are optional)</P>
<form action="landlordAddedProperty.php" method="post"
enctype="multipart/form-data" name="form1">
<table width="100%" border="0" cellpadding="10" cellspacing="5"
class="formLabelText">
<tr class="fill_in_table_header">
<td colspan="5"><strong>Status</strong></td>
</tr>
<tr class="fill_in_table">
<td colspan="2"><strong>Live in landlord</strong></td>
<td colspan="3"> <select name="status" class="formLabelText">
<option value="NULL" selected>Choose situation</option>
<option value="landlord">I am a permanent resident of this
property
and will rent out my home to student(s)</option>
<option value="empty">I want to rent out this property as an
empty property
to Westminster students</option>
</select></td>
</tr>
<tr class="fill_in_table_header">
<td colspan="5"><strong>Location</strong></td>
</tr>
<tr class="fill_in_table">
<td colspan="2"><strong>First line of Address</strong></td>
<td colspan="3"> <input type="text" name="address_first_line">
</td>
</tr>
<tr class="fill_in_table">
<td colspan="2"><strong>Post code</strong></td>
<td colspan="3"> <input type="text" name="post_code"> </td>
</tr>
<tr class="fill_in_table">
<td colspan="2"><strong>Town</strong></td>
<td colspan="3"> <input type="text" name="area">
eg. Kenton, Camden</td>
</tr>
<tr class="fill_in_table">
<td colspan="2"><strong>London location</strong></td>
<td colspan="3"> <select name="location" class="formLabelText"
id="loc_area">
<option value="NULL" selected>Choose part of London</option>
<option value="North London">North London</option>
<option value="North-East London">North-East London</option>
<option value="East London">East London</option>
<option value="South-East LondoE">South-East London</option>
<option value="South London">South London</option>
<option value="South-West London">South-West London</option>
<option value="West London">West London</option>
<option value="North-West London">North-West London</option>
</select> </td>
</tr>
<tr class="fill_in_table">
<td colspan="2"><strong>London Underground station
</strong></td>
<

View Replies !
Preventing Unwanted Access
I am creating a website, but there are two vulnerabilities that I can not seem to patch. I have a directory (/data/uploaded), this directory contains uploaded files which currently can be accessed (if someone figures out the directory) through the URL bar but I don't want them to be. The only way that these files should be accessed is by a .swf file.

The second issue is: I have a .php file, this script is accessed by a .swf file, I don't want it to be accessed by anything other than the .swf file as it contains some sensitive information.

What ways can I solve these issues? I've seen similar questions posted when I searched the forums, but I've never seen an answer that has solved the problem. I hope I have better lock .

View Replies !
Unwanted $string Portion
How do I strip put part of a string variable where, for example:

$string = http://mysite.com/common/folder/unique/folder/file.htm

and I want:

$string = unique/folder/file.htm

View Replies !
Stripping Unwanted Characters
I know there must be a simple way of doing this but I just can't find it. I am developing a system that allows users to upload word docs and download them. The upload script uses file_get_contents() to convert the file into a string and store it in a database for full text searching. The users never actually see the text - its just used to ascertain the relevance of the word doc before they download it.

The problem is that before and after the main text I'm getting random characters. Any ideas how I can strip these away? Example: ....

View Replies !
Unwanted Users With Ip Address
I'm using php with mysql. I have a site where I have been banning unwanted users by using their ip address. I have found that an ip address can be used by more than one member. Is there a more efficient way to single out a particular user other than using an ip address.

View Replies !
PHP Automatically Opening Unwanted Sessions
I used this tutorial and IT worked smoothely.. But when I added Links to each page, I noticed a crud load of numbers like so:

index.php?page=about&PHPSESSID=3e6332314bed953fe0d623947edd8f72

IT seems that it is opening a Session, Even though I gave it no Orders to open a session anywhere. Is there any code I can add to prevent the session from opening. I don't want to turn off sessions in my php.ini because I am using yabbse forum boards which relies on sessions.

View Replies !
Does This Auth Script Have An Unwanted Loop?
Found the below script in a book I am reading.

However it seems to me to fatal flaw that if you run it but type in the
wrong the details, you're basically buggered. As far as I can see, whatever
is initially entered into PHP_AUTH_USER and PHP_AUTH_PW are stored and then
compared against the database. However #10 simply looks for the presence of
data in PHP_AUTH_USER and PHP_AUTH_PW, finds something and compares it
again in a loop you cannot break out of.

<?php
/* Program: Auth.php
* Desc: Program that prompts for a user name and
* password from the user using HTTP authentication.
* The program then tests tests whether the user
* name and password match a user name and password
* pair stored in a MySQL database.
*/

//Testing whether the user has been prompted for a user name
if (!isset($_SERVER['PHP_AUTH_USER'])) #10
{
header('WWW-Authenticate: Basic realm="secret section"');
header('HTTP/1.0 401 Unauthorized'); #13
exit("This page requires authentication!"); #14
} #15

// Testing the user name and password entered by the user
else
#18
{
include("Vars.inc");
#20
$user_name = trim($_SERVER['PHP_AUTH_USER']);
#21
$user_password= trim($_SERVER['PHP_AUTH_PW']);
$connection = mysqli_connect($host, $user, $passwd) or die("Couldn't
connect to server."); #24
$db = mysqli_select_db($connection, $database) or
die("Couldn't select database.");
$sql =
"SELECT user_name FROM Valid_User WHERE user_name = '$user_name' AND
password = md5('$user_password')";
$result = mysqli_query($connection, $sql) or die("Couldn't execute
query."); #31
$num = mysqli_num_rows($result);
#32

if ($num < 1) // user name/password not found #33
{
exit("The User Name or password you entered is not valid.<br>");
} #37
} #38
// Web page content. #39
include ("Welcome.inc"); #40
?>

View Replies !
Unwanted Results From A Recursive Function
I have a recursive function within a class that is suppose to piece back together a passed in string. The string has been split into an array that holds each word.

If the "new" string is shorter than maxlength (141) than add the word and a space onto the returnString string. Otherwise, place the returnString into an array that will hold each string for later use, set the returnString = "", and recall the function.

Once I create the first part of the regrouping together and set returnString to "", I only get NULL back from the function. So I realize that there is a problem with that line of code, but I don't understand how to set returnString back to a string of length zero so that I may make another string out of it. PHP Code:

View Replies !
Displaying Database And Getting Unwanted Results...
I want to display everyone in the database, but only if the 'level' field is larger than 0.  Well, this works fine for most of the database... but if the last entry in the database is 0, then it prints it anyways.

Is there anyway around this?  I tried adding an if statement before the last bit where I echo out the table rows, but it was killing the entire table, or still showing the same results. Code:

View Replies !
$_GET Putting Unwanted Chars ...
I am using

$query=$_GET["query"];
to retrieve query string but if i pass say "test" in the query the
output of $query variable is ->  "test"

i.e. it is putting an extra backslash before the double quotes.. any suggestion???

View Replies !
Trim Unwanted Text From A Variable
$keyword = "penalties";

$content = "The computer program is protected by copyright law and international treaties. Unauthorized reproduction or of this program, or any portion of it, may result in severe civil and criminal penalties, and will be prosecuted to the maximum extent possible under the law.";

how do i trim off everything accept $keyword in $content. My end result shld return $content = "penalties";

View Replies !
Remove Unwanted <li> Tags From My Html
I am trying to remove unwanted <li> tags from my html, example.

<li>
<li>
<li>
<li>
<li>text
<li>text

i want just:

<li>text
<li>text

i have tried variants of this code, but i still cant get it to work, where am i going wrong? $content = str_replace("<li>+","",$content);

View Replies !
Collapsing Menu - Code A Menu For A Webpage
I am trying to code a menu for a webpage, the menu is broken up to groups i.e:

Home
Group1
Â*menuitem1
Â*menuitem2
Â*menuitem3
Group2
Â*Â*menuitem1
Â*Â*menuitem2
Â*menuitem3
And so on.

What I want to achieve is that the groups are shown in a collapsed state depending on the page which is currently being displayed i.e so it starts out like this Code:

View Replies !
Safe From Users Inserting Unwanted Data
I created a comment form which will inserts the comments into a database
and displays them immediately. I want to make sure that its safe from
users inserting unwanted data into the database or executing queries.

Here's my php code, is this done right? Is there anything else I should
to to make it more secure?

$handle = mysql_connect($host,$user,$password) or die ('Sorry, looks
like an error occurred.');

$sql = "INSERT INTO comments (id, comment, name, quotekey) VALUES (NULL,
'$comment', '$name', '$key')";

mysql_real_escape_string($sql);

mysql_select_db($database);

mysql_query($sql);

mysql_close($handle);

View Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved