Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

Go Back  dBforums > Data Access, Manipulation & Batch Languages > PHP > href with # in php

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-08-04, 03:27
rei rei is offline
Registered User
 
Join Date: Jul 2004
Posts: 30
href with # in php

i'm making a php script which call itself through form method=post.
PHP Code:
<?
$step
=$_POST[step];
echo 
"step=$step <br>";   // $step was successfully retrieved

if(isset($_POST[btn])){
  `
executing_some_shell_program`;
}

echo 
"<FORM NAME=continue_form METHOD=POST ACTION='$_SERVER[PHP_SELF]#${step}'";
echo 
"<input type=submit value=click name=btn>";
echo 
"<input type=hidden name=step value=14>";
echo 
"</FORM";
?>
....... SOME OTHER PAGE OUTPUT (HTML) ...
<a hname=14>this is the anchor link which i want after post event</a>

however, when i click on the form button, anchor isnt set.
and i have only http://myserver.com/script.php#
withought "14" at the end...

BUT, when i view the HTML source, the form action is stated to ****.php#14
what's the reason for this confusement?

thanks
Reply With Quote
  #2 (permalink)  
Old 10-08-04, 03:34
rei rei is offline
Registered User
 
Join Date: Jul 2004
Posts: 30
sorry, solved
thanks for those who read anyway
i dunno where goes wrong, but it works right now
maybe some grammar problem
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On