Hi, any help would be greatly appreciated on this

Ive discovered that if I am using a form, with the 'server[php_self]' action, then variables that i created earlier (such as ones i retrieved from the URL) disappear, or become unuseable...

how do i retain these variables, or pass them for use after the submit button is clicked?

Thanks...

lworks

Recommended Answers

All 3 Replies

try it like this

<form name="form-name" method="post" action="<? $_SERVER['PHP_SELF'] ?>?var_name=<? echo $var_value ?>&var_name2=<? echo $var_value2 ?>">

which method are you using? GET or POST.

if its GET then rudevils way will not work.

thanks for that info, i really appreciate the assistance!... i was using 'post' so all should be fine.

cheers

lworks

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.