Page 1 of 1
string problem
Posted: Fri Jul 09, 2010 5:46 am
by freiza
Code: Select all
//********************my.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<meta name="author" content="freiza" />
<title>Untitled 2</title>
</head>
<body>
<?php
print "<form action='run.php' method='get' enctype='text/plain'>
<input type=\"text\" name=\"one\" />
<input type=\"submit\" />
</form>
";
?>
</body>
</html>
//********************************run.php
<?php
/**
* @author freiza
* @copyright 2010
*/
print $_GET['one']." world";
?>
when i execute i get hello world...
Is there any way that i can get only hello and omit "world" without modifying run.php
Re: string problem
Posted: Fri Jul 09, 2010 9:25 am
by Skiddles2010
Is there a particular reason behind not modifying run.php?
Re: string problem
Posted: Fri Jul 09, 2010 5:28 pm
by freiza
any solutions?????
Re: string problem
Posted: Fri Jul 09, 2010 7:15 pm
by requinix
freiza wrote:any solutions?????
any answers to questions previously asked?????
Re: string problem
Posted: Fri Jul 09, 2010 7:29 pm
by agriz
Unless you modify the run.php, the answer is NO.
If you can explain why don't you want to modify run.php, we might think for next step.
Re: string problem
Posted: Sat Jul 10, 2010 7:12 am
by freiza
I have seen people doing it.
and i also want to know. I know it is possible.(using escape string or some other stuff)
Re: string problem
Posted: Sat Jul 10, 2010 12:07 pm
by internet-solution
yes it is possible in many different ways. But all of these will involve changing run.php