No tools to create form fields

789 views
Skip to first unread message

majid...@gmail.com

unread,
Aug 7, 2016, 6:48:06 PM8/7/16
to Google Web Designer beta
This product needs so much improvements including the user experience. Also i can't find any way to create forms inside GWD.

Svein-Tore Narvestad

unread,
Aug 8, 2016, 3:43:48 AM8/8/16
to Google Web Designer beta
Hi 

You can use the tag tool and then form and input tags.  it will work, though almost hardcoding......  There is no problem to use action and call a php either.  The php must be written in a differnt editor though, i.e. Notepad++

The form:

The source-code:


<body>

  <form class="gwd-form-fuxb" action="skriv_ut_navn.php" method="get">

    <p class="gwd-p-cqn2">Name:</p>

    <p class="gwd-p-14oy">Phone:</p>

    <p class="gwd-p-aozs">Email:</p>

    <input class="gwd-input-1xp1" type="text" name="dittnavn">

    <input class="gwd-input-j0y8" type="submit" value="Submit">

    <input class="gwd-input-13yo" type="text" name="tlf" id="tlf">

    <input class="gwd-input-1qm4" type="text" name="epost" id="epost">

    <h2 class="gwd-h1-1kv7">Input your data:</h2>

  </form>

</body>


Then, finally the php:


<html>

<head>

   <meta charset="UTF-8">

   <style>

   table {

  border-collapse:collapse;

   }

   table,td,th {

   border: 1px solid black;

   text-align:center;

   }

   td {

   background-color:yellow;

  }

  thead {

 background-color:cyan;

 

  }

   </style>

</head>

<body>

   <?php

      $navn=$_GET['dittnavn'];

 $tlf=$_GET['tlf'];

 $epost=$_GET['epost'];

      echo "<h1>Her kommer data om deg:</H1>";

      echo "<p><strong>Navn: </strong>  $navn</p> ";

 echo "<p><strong>Telefonnummer: </strong> $tlf</p> ";

 echo "<p><strong>Epost: </strong> $epost</p> ";

 echo "<table>";

 echo "<thead>";

 echo "<th colspan='3'>Dine opplysninger:</th>";

 echo "<tr>";

 echo    "<th>Navn</th>";

 echo    "<th>Telefonnummer</th>";

 echo    "<th>Epost</th>";

 echo "</tr>";

 echo "</thead>";

 echo "<tr>";

 echo    "<td>$navn</td>";

 echo    "<td>$tlf</td>";

 echo    "<td>$epost</td>";

 echo "</tr>";

 echo "</table>";

 

    ?>

</body>

</html>


Result of php (in the Norwegian language though, I'm sorry Majid):


Svein-Tore

majid...@gmail.com

unread,
Aug 8, 2016, 7:55:27 AM8/8/16
to Google Web Designer beta
Thanks man. you are awesome. I was going to quit on this but you solved my problem. I needed the input tag and it works perfectly. Cheers :)
Reply all
Reply to author
Forward
0 new messages