Welcome, Guest. Please login or register.
Did you miss your activation email?
February 12, 2012, 01:35:06 AM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
149619 Posts in 21098 Topics by 7537 Members
Latest Member: lotte2
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Help with inputting a form  (Read 616 times)
mrmcctt

Offline Offline

Posts: 20


« on: January 04, 2008, 08:24:20 PM »

I am attempting to place a driving directions form into our website and am a little confused about this.  I have created a site, created several pages including one called "Directions" which has one WYSIWYG area, and when I attempt to modify the page, I input the following code in the HTML source:

Code:
Directions To Our Office<br>
(This will take you to a Google Maps Page)<br>
<form action="http://maps.google.com/maps" method="get">
<p> <label for="saddr">From:</span></label>
<input name="saddr" id="saddr" size="62"> <input name="Reset" value="Reset Address" type="reset"></p>
<p> <label for="daddr">To:</label>
<input name="daddr" id="daddr" value="35th St @31.184820, -89.195150" size="96" type="hidden"><br>
The Mississippi Mobile Close Combat Tactical Trainer Office
<input name="submit" id="submit" value="Get Directions" type="submit"> </p>
</form>

What the above code does on my current webpage is add a driving directions form that links to "Google Maps" to give the driving directions.  I have our address in a hidden box because the map is not completely accurate in it's placement of our ofice.  

Once I save the HTML and go back to the WYSIWYG view, the code has automatically been changed to this:

Code:
Directions To Our Office<br />(This will take you to a Google Maps Page)<br /><form action="http://maps.google.com/maps" method="get"><p><label for="saddr">From:</span /></label> <input id="saddr" size="62" name="saddr" /> <input type="reset" name="Reset" /></p><p><label for="daddr">To:</label> <input id="daddr" type="hidden" size="96" name="daddr" /><br />The Mississippi Mobile Close Combat Tactical Trainer Office <input id="submit" type="submit" name="submit" /> </p></form>

What this does is change the labels I have on the Submit and Reset buttons and removes the hidden address in our office address box.

Does anyone have a suggestion on how I can get this code to remain the way I input it before I save it?

Any help is appreciated.

Thank You
Logged
kweitzel
Forum administrator
*****
Offline Offline

Posts: 6819


WWW
« Reply #1 on: January 04, 2008, 08:49:18 PM »

Just tested this "code" with the FCK Editor, the Google Map is loading fine ... which editor are you using?

cheers

Klaus
Logged

WebsiteBaker Org e.V. - for WebsiteBaker

mrmcctt

Offline Offline

Posts: 20


« Reply #2 on: January 04, 2008, 09:07:09 PM »

Thank you.

I am using HTMLarea right now. I installed FCKeditor but when I go into "Settings" and then "Advanced Settings" to set FCKeditor as my primary editor and then go to edit one of my pages, the page editor won't open.  Everything else works except for the page editor.

The problem with the form isn't that it won't show up after it's saved, it's that the editor removes several of the value="" properties from the form.

I guess I'm going to have to try to re-install / troubleshoot FCKeditor first.  I hope that fixes this because I've got a couple of forms that I don't really want to completely retype.  So far I'm very happy with with this CMS (it's so easy a dummy like me can use it) and want to keep using it.

edit:  FCKeditor started working.  I guess it just took a long time to initialize the first time. It did the trick.  The form works just fine now.

Thanks again. 
« Last Edit: January 04, 2008, 09:14:30 PM by mrmcctt » Logged
mrmcctt

Offline Offline

Posts: 20


« Reply #3 on: January 06, 2008, 04:01:52 AM »

I have to add that I'm not happy with FCKeditor's table editing abilities.  All I get is table properties and limited at that).

Oh well.....enjoying WB too much to let a little thing like that get me down.
Logged
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!