Geschlossen

Make form selection sticky

I have a mysql table t1 and t2

In t1 I have columns id,name,and t2_id

In t2 I have columns t2_id and job

Then I make a html/php form that is used to populate t1.

In the form there is field name where user type a name

There is also a dropdownlist populated from job in t2 (relation is t2_id).

I have a page where you can wiev all posts. After every posts I have a link called update. When submit update I send a $_GET to the next page wich presents a sticky form with the post related to the $_GET

Again the dropdownmeny for job shall be in the update form. I want it to be sticky and I can´t solve it myself. My code is:

echo "<select>";

while($rows=mysql_fetch_array($result)){

if ($x == $y)

{

echo "<option selected value=\"$x\";

echo "> $x</option>";

}

else

echo "<option value="$rows['t2_id']">$rows['t2_id']</option>";

}

echo "</select>";

Fähigkeiten: PHP

Mehr sehen: php sticky form, n. y. post, sticky form update, sticky form php, sticky form selection, user form, selection, make, php form mysql page, mysql populate table, populate select option mysql, mysql update else, html form submit link, post value, html post table, php post value, populate table mysql html page, html code form, value post, php value post, html update form php, html mysql form, form submit page, html update form, wich

Über den Arbeitgeber:
( 0 Bewertungen ) Malmö, Sweden

Projekt-ID: #423140

12 Freelancer bietetn im Durchschnitt $32 für diesen Job an

festsoft

Please see PM

$30 USD in 1 Tag
(16 Bewertungen)
4.9
queenfacebook

This problem will be solved with in 2 hours.

$30 USD in 0 Tagen
(1 Bewertung)
1.4
revozex

i can fix this error within minutes.

$35 USD in 1 Tag
(0 Bewertungen)
0.0
achila143

Very very Easy thing for me

$30 USD in 1 Tag
(0 Bewertungen)
0.0
zendstyle

Please check PMB. Thanks.

$30 USD in 0 Tagen
(0 Bewertungen)
0.0
getITSolution

Dear, Please have a look at PMB....

$30 USD in 0 Tagen
(0 Bewertungen)
0.0
veny32402

i will do this better

$30 USD in 1 Tag
(0 Bewertungen)
0.0
ravidubey345

Hi i've seen read the problem and i can provide you the solution for that as the expression is itself is not proper, Kindly revert for proper solution. Regards

$50 USD in 1 Tag
(0 Bewertungen)
0.0
anjkrs

i have experience in all that.

$30 USD in 1 Tag
(0 Bewertungen)
0.0
leecowtris

I'm sure I can fix it easily :)

$30 USD in 1 Tag
(0 Bewertungen)
0.0
titanmk4

Please check PM!

$30 USD in 0 Tagen
(0 Bewertungen)
0.0
ecovahrudi

we can do this as soon as possible.. & maybe less than $30

$30 USD in 1 Tag
(0 Bewertungen)
0.0