Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Re: [therelief] How do I add a form field?

Quote Reply
Re: [therelief] How do I add a form field? In reply to
On this:

This just creates the field for the phone number to be stored. You have to add a phone number input to the add.html template: <input type=text name="the name of your field" value=default value> etc.

I'm just really, really lost. I don't know where this is supposed to go. I know where to find the template, but I don't know where that code is supposed to go in there.

Here's the code from the add.html template:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/...ml1-transitional.dtd">
<html>
<head>
<title><%site_title%>: Add a Link</title>
<%include include_common_head.html%>
</head>
<body id="add">
<%include include_accessibility.html%>
<div id="wrapper">
<%include include_header.html%>
<%include include_contentheader.html%>
<div id="ocwrapper" class="clear">
<div id="icwrapper" class="clear">
<%include include_leftsidebar.html%>
<div id="contentwrapper" class="shadowleft">
<%include include_contentwrapper_top.html%>
<div class="shadowtop"><div class="shadowtopleft"></div><div class="shadowtopright"></div></div>
<div class="shadowright">
<div id="content">
<%include include_content_top.html%>
<div class="crumb"><%Links::Utils::format_title($main_title_loop, separator => $crumb_separator, no_escape_separator => $no_escape_crumb_separator, include_home => 1, link_type => 2)%></div>
<h2>Add a Link</h2>
<p>
Please completely fill out the form, and we'll add your link as soon as possible.
</p>
<form action="<%config.db_cgi_url%>/add.cgi" enctype="multipart/form-data" method="post">
<%include include_form.html%>
<div class="formsubmit">
<input type="submit" name="add" value="Add Link" class="submit" />
</div>
</form>
<%include include_content_bottom.html%>
</div>
</div>
<div class="shadowbottom"><div class="shadowbottomleft"></div><div class="shadowbottomright"></div></div>
<%include include_contentwrapper_bottom.html%>
</div>
<%include include_rightsidebar.html%>
</div>
</div>
<%include include_contentfooter.html%>
<%include include_footer.html%>
</div>
</body>
</html>
Subject Author Views Date
Thread How do I add a form field? therelief 16240 Sep 24, 2006, 6:08 PM
Thread Re: [therelief] How do I add a form field?
jdgamble 15264 Sep 24, 2006, 8:04 PM
Thread Re: [jdgamble] How do I add a form field?
therelief 15344 Sep 24, 2006, 8:16 PM
Thread Re: [therelief] How do I add a form field?
jdgamble 15237 Sep 24, 2006, 8:32 PM
Thread Re: [jdgamble] How do I add a form field?
therelief 15225 Sep 24, 2006, 8:41 PM
Thread Re: [therelief] How do I add a form field?
therelief 15288 Sep 24, 2006, 8:44 PM
Thread Re: [therelief] How do I add a form field?
jdgamble 15333 Sep 24, 2006, 10:14 PM
Thread Re: [jdgamble] How do I add a form field?
therelief 15288 Sep 24, 2006, 10:56 PM
Thread Re: [therelief] How do I add a form field?
SandraR 15229 Sep 25, 2006, 5:05 AM
Thread Re: [SandraR] How do I add a form field?
therelief 15194 Sep 25, 2006, 7:49 AM
Thread Re: [therelief] How do I add a form field?
SandraR 15225 Sep 25, 2006, 7:58 AM
Thread Re: [SandraR] How do I add a form field?
therelief 15204 Sep 25, 2006, 8:11 AM
Post Re: [therelief] How do I add a form field?
therelief 15164 Sep 25, 2006, 8:20 AM
Thread Re: [therelief] How do I add a form field?
jdgamble 15268 Sep 25, 2006, 8:35 AM
Thread Re: [jdgamble] How do I add a form field?
therelief 15285 Sep 25, 2006, 8:41 AM
Post Re: [therelief] How do I add a form field?
jdgamble 15146 Sep 25, 2006, 9:15 AM
Thread Re: [therelief] How do I add a form field?
therelief 15254 Sep 25, 2006, 9:26 AM
Thread Re: [therelief] How do I add a form field?
jdgamble 15251 Sep 25, 2006, 12:02 PM
Thread Re: [jdgamble] How do I add a form field?
therelief 15418 Sep 25, 2006, 12:16 PM
Thread Re: [therelief] How do I add a form field?
jdgamble 15255 Sep 26, 2006, 12:08 PM
Thread Re: [jdgamble] How do I add a form field?
therelief 15347 Sep 26, 2006, 12:14 PM
Thread Re: [therelief] How do I add a form field?
jdgamble 15242 Sep 26, 2006, 2:05 PM
Thread Re: [jdgamble] How do I add a form field?
therelief 15243 Sep 26, 2006, 4:48 PM
Thread Re: [therelief] How do I add a form field?
jdgamble 15189 Sep 26, 2006, 5:36 PM
Thread Re: [jdgamble] How do I add a form field?
therelief 15225 Sep 26, 2006, 6:13 PM
Thread Re: [therelief] How do I add a form field?
therelief 19521 Sep 26, 2006, 6:58 PM
Thread Re: [therelief] How do I add a form field?
jdgamble 19520 Sep 26, 2006, 7:38 PM
Thread Re: [jdgamble] How do I add a form field?
therelief 19848 Sep 26, 2006, 7:49 PM
Thread Re: [therelief] How do I add a form field?
jdgamble 19540 Sep 26, 2006, 8:57 PM
Thread Re: [jdgamble] How do I add a form field?
therelief 19505 Sep 26, 2006, 9:05 PM
Thread Re: [therelief] How do I add a form field?
jdgamble 19491 Sep 26, 2006, 10:27 PM
Thread Re: [jdgamble] How do I add a form field?
therelief 19473 Sep 26, 2006, 11:05 PM
Thread Re: [therelief] How do I add a form field?
SandraR 19421 Sep 27, 2006, 4:38 AM
Thread Re: [SandraR] How do I add a form field?
therelief 19497 Sep 27, 2006, 8:52 AM
Thread Re: [therelief] How do I add a form field?
therelief 19488 Sep 27, 2006, 9:19 AM
Thread Re: [therelief] How do I add a form field?
SandraR 19477 Sep 27, 2006, 10:16 AM
Thread Re: [SandraR] How do I add a form field?
therelief 19422 Sep 27, 2006, 10:24 AM
Thread Re: [therelief] How do I add a form field?
SandraR 19481 Sep 27, 2006, 2:55 PM
Thread Re: [SandraR] How do I add a form field?
therelief 19403 Sep 27, 2006, 3:00 PM
Thread Re: [therelief] How do I add a form field?
therelief 19495 Sep 27, 2006, 3:03 PM
Post Re: [therelief] How do I add a form field?
therelief 19435 Sep 27, 2006, 3:06 PM
Thread Re: [SandraR] How do I add a form field?
SandraR 19391 Sep 27, 2006, 3:06 PM
Thread Re: [SandraR] How do I add a form field?
SandraR 19463 Sep 27, 2006, 3:09 PM
Thread Re: [SandraR] How do I add a form field?
therelief 19421 Sep 27, 2006, 3:28 PM
Thread Re: [therelief] How do I add a form field?
therelief 19409 Sep 27, 2006, 3:33 PM
Thread Re: [therelief] How do I add a form field?
jdgamble 19431 Sep 27, 2006, 5:16 PM
Thread Re: [jdgamble] How do I add a form field?
therelief 19388 Sep 27, 2006, 5:33 PM
Thread Re: [therelief] How do I add a form field?
jdgamble 19450 Sep 27, 2006, 5:44 PM
Thread Re: [jdgamble] How do I add a form field?
therelief 19610 Sep 27, 2006, 5:44 PM
Post Re: [therelief] How do I add a form field?
therelief 2319 Sep 27, 2006, 5:53 PM
Post Post deleted by therelief
therelief 19474 Sep 26, 2006, 7:00 PM