using display rules from an input...

User 187934 Photo


Senior Advisor
20,271 posts

Did you remove the script wrapping the iframe code that the form builder provides? If not please do so.
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
User 2831767 Photo


Registered User
24 posts

eric I'm sorry but I do not understand. sigh !! i have inserted this code into html element:

<iframe src='b.php' name='myIframe' height='150' % width='100%' frameborder='0'>
</iframe>


and this il the php code:

<form action='' method='POST'>
<input type='text' name='name'><input type='submit' name='submitu' value='ok'></input></input>
</form><br />



<?php
$name = "";

if(isset($_POST['name'])){
$name = $_POST['name'];
}


//$name=$_REQUEST['name'];

$db_connection= mysql_connect('localhost','test','232323');
$db_selection = mysql_select_db('order',$db_connection);

$query = mysql_query("SELECT * FROM clienti WHERE codicecli = '$name'" );

while($row = mysql_fetch_array($query))
{

global $ris;
$ris=$row['intestario'];
?>





<input name="pagename" type="text" id="pagename" value="<?php echo $row['intestario']; ?>" readonly>
<p>Keywords</p><br />
<input name="pagekey" type="text" id="pagekey" value="<?php echo $row['mail']; ?>"readonly>



<!-- <p>Description</p><br />
<!-- <input name="pagedesc" type="text" id="pagedesc" value="<?php// echo $row['IDRappresentante']; ?>">
<!-- <p>Content</p><br />
<!-- <textarea name="pagecont" cols="120" rows="20" id="pagecont"><?php// echo $row['alias']; ?></textarea>





<?php
}



?>
User 2831767 Photo


Registered User
24 posts

enough for me to understand how to get value from pagename in myiframe to an input text into WFB

I'm sorry you are very kind
User 187934 Photo


Senior Advisor
20,271 posts

Perhaps.
<iframe src='b.php?pagename=mypagename' name='myIframe' height='150'%' width='100%' frameborder='0'>
</iframe>

<input name="pagename" type="text" id="pagename" value="<?php echo $_GET['pagename']; ?>" readonly>

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
User 2831767 Photo


Registered User
24 posts


thanks eric unfortunately I 'm not very good . I wanted to pass the result of a database field into the form created with WFB . thanks anyway are very dear:(:(:( and my english is very poor
User 187934 Photo


Senior Advisor
20,271 posts

Now I understand what your after.
Are you able to connect to your database?
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
User 2831767 Photo


Registered User
24 posts

yes i see the result of query into iframe. i would pass a fields into WFB form input text
User 187934 Photo


Senior Advisor
20,271 posts

<form action='' method='POST'>
<input type='text' name='name'><input type='submit' name='submitu' value='ok'></input></input>
</form><br />

<?php
$name = "";

if(isset($_POST['name'])){
$name = $_POST['name'];
}

$database = 'mysql: myHost =localhost;dbname=order;charset=utf8';
$username = 'test';
$password = '232323';
try {
$pdo = new PDO($database, $username, $password);
$pdo ->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$pdo ->setAttribute(PDO::ATTR_EMULATE_PREPARES, false);
}
catch (PDOException $e) {
echo 'Connection failed: ' . $e->getMessage();
}

$query1 = $pdo->prepare("SELECT intestario,mail FROM clienti WHERE codicecli = :codicecli");
$data1 = array(
':codicecli' => $name
);
$query1->execute($data1);
$row = $query1 -> fetch();
$ris= $row['intestario'];
$mail= $row['mail'];
?>

<input name="pagename" type="text" id="pagename" value="<?php echo $ris; ?>" readonly>
<p>Keywords</p><br />
<input name="pagekey" type="text" id="pagekey" value="<?php echo $mail; ?>"readonly>

<?php
}

?>
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
User 2831767 Photo


Registered User
24 posts

the result remain always into iframe. :(
User 187934 Photo


Senior Advisor
20,271 posts

Are you trying to pass a variable from an iframe to the page the iframe is on?
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

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.