Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

how do i make form send it contents to itself and execute a script in the page?

Posted on 2003-03-18
6
Medium Priority
?
249 Views
Last Modified: 2006-11-17
how do i make form send it contents to itself and execute a script in the page?
0
Comment
Question by:foran
  • 3
  • 2
6 Comments
 
LVL 3

Expert Comment

by:bartonjo2
ID: 8158190
<form name="form1" method="post" action="<?php $_SERVER['PHP_SELF'] ?>">
0
 
LVL 6

Expert Comment

by:carchitect
ID: 8158320
o yes
no prob
ok try this


<?
if(isset($_POST['myname']))
  echo $_POST['myname'];
?>


filename.php
----------------------

<html>
<body>
<form action="filename.php" method=post>
<input type=text name=myname>
<input type=submit>
</form>
</body>
</html>



0
 
LVL 3

Expert Comment

by:bartonjo2
ID: 8159491
hey carcitecht dont you think your cutting the chase, to make page send variables to itself it requires far less work to use PHP_SELF
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
LVL 3

Accepted Solution

by:
bartonjo2 earned 450 total points
ID: 8159505
hey carcitecht dont you think your cutting the chase, to make page send variables to itself it requires far less work to use PHP_SELF
0
 

Author Comment

by:foran
ID: 8160464
Hola Carcitecht, I need a fast simple solution requiring a minumum amount of work on my part.
0
 

Author Comment

by:foran
ID: 8160468
thanks bartonjo2 simple and effective
0

Featured Post

Become an Android App Developer

Ready to kick start your career in 2018? Learn how to build an Android app in January’s Course of the Month and open the door to new opportunities.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses how to create an extensible mechanism for linked drop downs.
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Suggested Courses

572 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question