Jump to content

"form action" question


okrobie

Recommended Posts

I have a form in the "menu" side of a frames page. and the form action set to SELF. I want the form result to come back to the menu window in frames . Instead it comes back to the default window. Is there a way to have it perform the way I want? I hope I made this clear enough. Thanks.

 

$self =  $_SERVER['PHP_SELF'];
$first_name = $_POST['first_name'];
$last_name = $_POST['last_name'];
$user_email = $_POST['user_email'];

?>

<form action="<?php echo( $self ); ?>" font ="arial" color="white" method="post">
First Name: <br><input type="text" name="first_name" size="8"><br>
Last Name: <br><input type="text" name="last_name" size="8"><br>
Email: <br><input type="text" name="user_email" size="8"><br><br>

<input type="submit" value="Submit">
</form>

Link to comment
Share on other sites

Hmm... I just tested and a framed form always POSTed in the frame it was called from. I could only get the form to POST to another frame or the entire window by specifically assigning a value for the other window or page in the form target. Not sure why you are getting different results.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.