script vraagjes

Gestart doorPatricka18 reacties55 weergaven

19 berichten · pagina 1 van 2

Patricka

Lid · Topicstarter

Berichten
12.729
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Hoi,

Ik ben bezig me website te updaten, daarom heb ik nu een paar vragen.

1.
Ik heb nu heb ik bij portfolio dat je aan kan klikken, welke onderwerpen je wilt zien, zoals; "websites" - "logos" ect.

Maar hoe kan ik het, het beste doen, dat het werkt?

2.
Ik heb mijn contact formulier gemaakt, in eigen style. En in een tabel gezet. Maar nu wil ik dat alle tekst vakken netjes onder elkaar staan.

Maar bij de checkbox dat de informatie in het midden van 5 vinkjes staat.
Hoe moet ik dit doen?

Ook wil ik het werkend hebben, met dat er op sommige delen wordt gecontroleerd of alles netjes in ingevuld.

html:
Spoiler tonen
<table>
        <tr>
        <td>Voornaam:* <input type="text" name="link" class="input" /></td>
        </tr>
        
        <tr>
        <td>Achternaam:* <input type="text" name="link" class="input" /></td>
        </tr>
        
        <tr>
        <td>Straat:* <input type="text" name="link" class="input" /></td>
        </tr>
        
        <tr>
        <td>Postcode:* <input type="text" name="link" class="input" /></td>
        </tr>
        
        <tr>
        <td>Woonplaats:* <input type="text" name="link" class="input" /></td>
        </tr>
        
        <tr>
        <td>Telefoon:* <input type="text" name="link" class="input" /></td>
        </tr>
        
        <tr>
        <td>E-mailadres:* <input type="text" name="link" class="input" /></td>
        </tr>
        
        <tr>
        <td>Website:* <input type="text" name="link" class="input" /></td>
        </tr>
        
        <tr>
        <td>Informatie:*</td>
        </tr>
        <tr>
        <td><input type="checkbox" name="Website ontwerp" value="Website ontwerp" checked />Website ontwerp</td>
        </tr>
        <tr>
        <td><input type="checkbox" name="Website restylen" value="Website restylen" checked />Website restylen</td>
        </tr>
        <tr>
        <td><input type="checkbox" name="Logo ontwerp" value="Logo ontwerp" checked />Logo ontwerp</td>
        </tr>
        <tr>
        <td><input type="checkbox" name="Huisstyle ontwerp" value="Huisstyle ontwerp" checked />Huisstyle ontwerp</td>
        </tr>
        <tr>
        <td><input type="checkbox" name="Huisstyle restylen" value="Huisstyle restylen" checked />Huisstyle restylen</td>
        </tr>
        <tr>
        <td><input type="checkbox" name="Webshop ontwerp" value="Webshop ontwerp" checked />Webshop ontwerp</td>
        </tr>
        <tr>
        <td><input type="checkbox" name="Overig drukwerk" value="Overig drukwerk" checked />Overig drukwerk</td>
        </tr>
        <tr>
        <td><input type="checkbox" name="Anders" value="Anders" checked>Anders</td>
        </tr>
        
        <tr>
        <td>Onderwerp:*<input type="text" name="link" class="input" /></td>
        </tr>
        
        <tr>
        <td>Bericht:* <input type="text" name="link" class="input" /></td>
        </tr>
        </table>
css:
Spoiler tonen
Quote:
.input { background: url(../img/form.png) no-repeat; width: 486px; height: 43px; padding-left: 10px; border: 0; }
.input input[type="text"]{background: none; float: left; font: 10px verdana; color:#929292; }
Waarschijnlijk nog wel meer vragen, maar dan komen deze erbijbiggrin

Alvast bedankt.

Groet,

Patrick
0
Berichten
20.364
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Maak eens een afbeelding/ voorbeeld van hoe het nu is bij jouw contact formulier smile
0
Berichten
15.446
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Heb je ook een online voorbeeld?

Nummer 2 kun je oplossen door de td width toe te voegen en dan meerdere kolommen maken
Zo iets:

<table>
<tr><td width=100px>naam:</td><td width=300px>inputveld voor naam</td></tr>
<tr><td width=100px>email:</td><td width=300px>inputveld voor email</td></tr>
enz
</table>
0
Patricka

Lid · Topicstarter

Berichten
12.729
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ik zal even een voorbeeld online zetten en dan versturen via pm.biggrin
toevoeging op 11 september 2011, 13:37:29:
verstuurd
0
Berichten
20.364
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Zelfde als marjolein op punt 2 smile
toevoeging op 11 september 2011, 13:40:43:
Je moet een dubbele td doen
0
Patricka

Lid · Topicstarter

Berichten
12.729
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
bedoel je dus zo;

<tr>
<td><input type="checkbox" name="Website ontwerp" value="Website ontwerp" checked /><td>Website ontwerp</td></td>
        </tr>


?
0
Berichten
20.364
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Nee

<tr>
<td><input type="checkbox" name="Website ontwerp" value="Website ontwerp" checked /></td><td>Website ontwerp</td>
        </tr>
0
Patricka

Lid · Topicstarter

Berichten
12.729
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ja, dat bedoelde ik.emoMaar Marjolein maakt hem even goed voor me.biggrin
0
Berichten
15.446
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
alsje:
Spoiler tonen
<table>
        <tr>
        <td width="100">Voornaam:*</td><td width="500"> <input type="text" name="link" class="input" /></td>
        </tr>
        
        <tr>
        <td>Achternaam:*</td><td><input type="text" name="link" class="input" /></td>

        </tr>
        
        <tr>
        <td>Straat:* </td><td><input type="text" name="link" class="input" /></td>
        </tr>
        
        <tr>
        <td>Postcode:* </td><td><input type="text" name="link" class="input" /></td>
        </tr>
        
        <tr>

        <td>Woonplaats:* </td><td><input type="text" name="link" class="input" /></td>
        </tr>
        
        <tr>
        <td>Telefoon:* </td><td><input type="text" name="link" class="input" /></td>
        </tr>
        
        <tr>
        <td>E-mailadres:* </td><td><input type="text" name="link" class="input" /></td>

        </tr>
        
        <tr>
        <td>Website:* </td><td><input type="text" name="link" class="input" /></td>
        </tr>
        
        <tr>
        <td>Informatie:*</td><td>
        <input type="checkbox" name="Website ontwerp" value="Website ontwerp" checked />Website ontwerp<br />
        <input type="checkbox" name="Website restylen" value="Website restylen" checked />Website restylen<br />
        <input type="checkbox" name="Logo ontwerp" value="Logo ontwerp" checked />Logo ontwerp<br />
        <input type="checkbox" name="Huisstyle ontwerp" value="Huisstyle ontwerp" checked />Huisstyle ontwerp<br />
        <input type="checkbox" name="Huisstyle restylen" value="Huisstyle restylen" checked />Huisstyle restylen<br />
        <input type="checkbox" name="Webshop ontwerp" value="Webshop ontwerp" checked />Webshop ontwerp<br />
        <input type="checkbox" name="Overig drukwerk" value="Overig drukwerk" checked />Overig drukwerk<br />
        <input type="checkbox" name="Anders" value="Anders" checked>Anders</td>
        </tr>
        
        <tr>
        <td>Onderwerp:*</td><td><input type="text" name="link" class="input" /></td>
        </tr>
        
        <tr>
        <td>Bericht:* </td><td><input type="text" name="link" class="input" /></td>
        </tr>
        </table>
voor punt 1 heb ik ook een voorbeeld nodig om te kijken wat je precies bedoeld.
0
Patricka

Lid · Topicstarter

Berichten
12.729
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Nu staat alles netjes, maar nu moet hij nog werkend.biggrin
Voor de andere vraag, stuur je je weer een pm.yummie
toevoeging op 11 september 2011, 14:20:01:
Marjolein weet niet hoe ze het moet sorteren, dus weet iemand anders het?sadley
0
Berichten
20.364
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Wat sorteren? emo
0
Berichten
15.446
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Shahiem schreef:
Wat sorteren? emo
hij wilt zijn projecten ophalen uit de database, je ziet dan al zijn projecten maar hij wilt dan dat als je op een link klikt bv "logos" dat je dan alleen de projecten ziet die met logos te maken heeft. Sorteren dus op onderwerp.
Ik kan hem niet helpen hiermee wink
0
Patricka

Lid · Topicstarter

Berichten
12.729
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Shahiem schreef:
Wat sorteren? emo
Lees vraag 1,emo
Ik wil mijn portfolio sorteren op onderdeel. Maar ook dat je alles door elkaar ziet.

// Wat Marjolein zegt biggrin
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
Zoiets:

[COLOR= #0000BB]<?php[/COLOR]
[COLOR= #FF8000]// We gaan ervanuit dat er achter de link staat: ?sorteer=logo
// Dan gebruiken we deze query:[/COLOR]
[URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT * FROM projecten WHERE type = "[/COLOR] [COLOR= #007700].[/COLOR] [URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]sorteer[/COLOR][COLOR= #007700]]) .[/COLOR] [COLOR= #DD0000]""[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #FF8000]// Je kan ook bijv. kijken of de waarde in een array staat (=Veiliger)
// Dan krijgen we dit:[/COLOR]
[COLOR= #0000BB]$types[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/array"]array[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]logo[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]layout[/COLOR][COLOR= #007700]);[/COLOR] [COLOR= #FF8000]// Kan je van alles in doen[/COLOR]
[COLOR= #0000BB]$type[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/in_array"]in_array[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]sorteer[/COLOR][COLOR= #007700]],[/COLOR] [COLOR= #0000BB]$types[/COLOR][COLOR= #007700]) ?[/COLOR] [COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]sorteer[/COLOR][COLOR= #007700]] :[/COLOR] [COLOR= #DD0000][/COLOR][COLOR= #007700];[/COLOR]

[URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT * FROM projecten "[/COLOR] [COLOR= #007700]. ([/COLOR][COLOR= #0000BB]$type[/COLOR] [COLOR= #007700]!=[/COLOR] [COLOR= #DD0000][/COLOR] [COLOR= #007700]?[/COLOR] [COLOR= #DD0000]"WHERE type = "[/COLOR] [COLOR= #007700].[/COLOR] [URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$type[/COLOR][COLOR= #007700]) .[/COLOR] [COLOR= #DD0000]""[/COLOR] [COLOR= #007700]:[/COLOR] [COLOR= #DD0000]""[/COLOR][COLOR= #007700]);[/COLOR]

[COLOR= #FF8000]// Kan fouten bevatten, Heb uit hoofd gedaan :P[/COLOR]
?>
0
Patricka

Lid · Topicstarter

Berichten
12.729
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
En hoe kan ik dit inbouwen? Ik kan geen woord php.sadley
0

Jouw reactie

Deel je idee, stel een vraag of help een ander verder.

Editor laden…

Praat mee met de One2xs-community.

Inloggen om te reageren