no error's on server. Just cann't understand what's going wrong. I attach another picture from code . the html page generated from WFB shouldn't be a .php page for this to work?
Where are you setting the session variable?
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.
This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
It's easy to overlook something you're not looking for.
This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
after login i'm going direct to menu.php. Then i click on a link to log.php where i have inserted the code generated by WFB. Here's the code:
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<?php
session_start(); // start up your PHP session!
?>
<?php
$username = $_SESSION['username'];
echo 'Your username is '.$username.' Welcome to the site' ;
?>
<p>O seu username é: <?php echo $_SESSION['username']; ?></p>
<script type="text/javascript">document.write(unescape("%3Ciframe id=\"fb_iframe\" src=\"teste.php" + window.location.search + "\" width=\"100%\" height=\"394\"allowtransparency=\"true\" scrolling=\"no\" frameborder=\"0\"%3E<a href=\"teste.php\" title=\"teste\">Check out my CoffeeCup Form</a>%3C/iframe%3E"));</script>
<noscript>
<iframe width="100%" height="394" style="border:none; background:transparent; overflow:hidden;"
id="fb_iframe" src="teste/teste.html">
<a href="teste.php" title="teste">Check out my CoffeeCup Form</a>
</iframe>
</noscript>
</body>
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<?php
session_start(); // start up your PHP session!
?>
<?php
$username = $_SESSION['username'];
echo 'Your username is '.$username.' Welcome to the site' ;
?>
<p>O seu username é: <?php echo $_SESSION['username']; ?></p>
<script type="text/javascript">document.write(unescape("%3Ciframe id=\"fb_iframe\" src=\"teste.php" + window.location.search + "\" width=\"100%\" height=\"394\"allowtransparency=\"true\" scrolling=\"no\" frameborder=\"0\"%3E<a href=\"teste.php\" title=\"teste\">Check out my CoffeeCup Form</a>%3C/iframe%3E"));</script>
<noscript>
<iframe width="100%" height="394" style="border:none; background:transparent; overflow:hidden;"
id="fb_iframe" src="teste/teste.html">
<a href="teste.php" title="teste">Check out my CoffeeCup Form</a>
</iframe>
</noscript>
</body>
You need to submit to a php script then the script will use a redirect back to form.
<?php
session_start();
$username = $_POST['username'];
$_SESSION['username']= $username;
Header("location:../myformname.html");
?>
session_start();
$username = $_POST['username'];
$_SESSION['username']= $username;
Header("location:../myformname.html");
?>
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.
This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
It's easy to overlook something you're not looking for.
This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
I have to thank you very much for your help on this issue!!
Sorry for the troubles, because i'm not a developer. So, where exactly do i insert that code? I'm confused now ...
Sorry for the troubles, because i'm not a developer. So, where exactly do i insert that code? I'm confused now ...
Place that code on a myphppagename.php then submit the form to it.
HTML page with form myformname.html
myphppagename.php
HTML page with form myformname.html
<form method="post" action="myphppagename.php" target="_parent">
<input type="password" name="password" value="">
<input type="text" name="username" value="<?php if(isset($_SESSION["username"])) { echo $_SESSION["username"]; } ?>">
<input type="hidden" name="submit_date" value="<?php print(date('Y-m-d H:i:s')); ?>">
<input type="hidden" value="<?php echo $_SERVER['REMOTE_ADDR']; ?>" name="ip_address" />
</form>
<input type="password" name="password" value="">
<input type="text" name="username" value="<?php if(isset($_SESSION["username"])) { echo $_SESSION["username"]; } ?>">
<input type="hidden" name="submit_date" value="<?php print(date('Y-m-d H:i:s')); ?>">
<input type="hidden" value="<?php echo $_SERVER['REMOTE_ADDR']; ?>" name="ip_address" />
</form>
myphppagename.php
<?php
session_start();
$username = $_POST['username'];
$_SESSION['username']= $username;
Header("location:../myformname.html");
?>
session_start();
$username = $_POST['username'];
$_SESSION['username']= $username;
Header("location:../myformname.html");
?>
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.
This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
It's easy to overlook something you're not looking for.
This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
Don't work .. i don't know if i'm doing something wrong ... is it possible for you to send me a pack of files for me to test it?
I forgot the session_start on the html page. You also want to unset the session if the user refreshes the page in some cases, such as error checking.
<?php
session_start();
$username = $_POST['username'];
$_SESSION['username']= $username;
Header("location:myformname.html");
?>
session_start();
$username = $_POST['username'];
$_SESSION['username']= $username;
Header("location:myformname.html");
?>
<?php session_start();?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
</head>
<body>
<form method="post" action="myphppagename.php" target="_parent">
Username:<input type="text" name="username" value="<?php if(isset($_SESSION["username"])) { echo $_SESSION["username"]; } ?>"><br>
Password:<input type="password" name="password" value="">
<input type="hidden" name="submit_date" value="<?php print(date('Y-m-d H:i:s')); ?>">
<input type="hidden" value="<?php echo $_SERVER['REMOTE_ADDR']; ?>" name="ip_address" />
<input type="submit" name="submit" value="submit">
</form>
<?php
unset($_SESSION['username']);
?>
</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
</head>
<body>
<form method="post" action="myphppagename.php" target="_parent">
Username:<input type="text" name="username" value="<?php if(isset($_SESSION["username"])) { echo $_SESSION["username"]; } ?>"><br>
Password:<input type="password" name="password" value="">
<input type="hidden" name="submit_date" value="<?php print(date('Y-m-d H:i:s')); ?>">
<input type="hidden" value="<?php echo $_SERVER['REMOTE_ADDR']; ?>" name="ip_address" />
<input type="submit" name="submit" value="submit">
</form>
<?php
unset($_SESSION['username']);
?>
</body>
</html>
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.
This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
It's easy to overlook something you're not looking for.
This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
No success .. is it possible for you to simulate it on WFB and send to me the files .... then i'll put them on server and test it
I'm only using the form builder to create the form and use the built in validation. You will need to replace the myformname.php with your own script. The one I posted is only a quick example.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.
This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
It's easy to overlook something you're not looking for.
This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.