Hi guys, I have a little problem in the URL encoding.
The working URL should be this:
Instead I have this:
The problem is in this portion of code, but I can't find it and solve:
Any hint please?Code:echo "Select Number of records per page: <form method=get action=$action_url> <select name=page=testlist.php&limit> <option value=10 $select10>10 Records</option> <option value=5 $select5>5 Records</option> <option value=2 $select2>2 Records</option> </select> <input type=submit value=GO>";
what is $action_url set to? I think that is your problem
__________________________________________
I study Information Systems at Karlstad University when I'm not on CodeCall
Sorry I forgot, $action_url is:
your problem is here:
This is falsy html. do this instead:Code:<select name=page=testlist.php&limit>
On the other hand, that is a non suitable name. even better would be:Code:<select name="page=testlist.php"limit">
Code:<input type="hidden" name="page" value="testlist.php"> <select name="limit">
__________________________________________
I study Information Systems at Karlstad University when I'm not on CodeCall
Finally done and finished!
Fixed with the second method:
How can I live without this forum!?<input type="hidden" name="page" value="testlist.php">
<select name="limit">
Thank you so much.
Sorry again
But if I had to use also a mySQL query result and my URL has to be something like this:
The "id", "id_nation" are two fields of a database mySQL.
I mean something like this (I know it's wrong, but just to explain what I meant):
Code:<?
$page_name = "es_ES";
$id_nation = ($_POST['id_nation']);
?>
<input type=hidden name=u value="<?php echo $page_name ?>" name1=id_nation value1="<?php echo $id_nation ?>">
just do this?
Code:<input type=hidden name=id_nation value="<?php echo $id_nation ?>"> <input type=hidden name=u value="<?php echo $page_name ?>">
__________________________________________
I study Information Systems at Karlstad University when I'm not on CodeCall
Wonderful, I didn't think I could do it.
Many thanks for you big help.![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks