Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Forms

Featured Replies

Hi All :rolleyes:

Putting a form onto a web page is easy enough, see coding below.

However, when a prospective client 'pushes' the submit button, how do i get this info to me? What additional coding to I need?

xhtml:

<form action="/cgi-bin/guestbook.pl" method="get">

<fieldset id="signup">

<label for="first"> Full Name:</label>

<input type="text name="firstname" id="first" /><br />

<label for="first"> Your Email address:</label>

<input type="text name="firstname" id="first" /><br />

<label for="first">Est. # of pages for website:</label>

<input type="text name="firstname" id="first" /><br />

<label for=""nick">Your nickname: </label>

<input type="text" name="nickname" id="nick" /><br />

<label for="desc">Famous for:</label>

<textarea rows="10" cols="25" id="desc">Keywords for your business

 

and/or for your Personal page:</textarea><br />

<input type="submit" value="submit" id="subbutton" />

</fieldset

</form>

</div>

 

css:

fieldset { font-family: Verdana, Ariel, Helvetica, sans-serif;

font-size: 12px;

background-color: #CCCCCC;

padding: 12px;

border: medium double #666;

width: 30em; }

label { width: 6em;

float: left;

text-align: right;

margin: .5em 1em;

clear: both; }

input, textarea {

float: left;

margin: .5em 0;

width: 250px; }

#subbutton {

float: none;

width: auto;

margin-bottom: 1em;

margin-left: 7em;

clear: both; }

br { clear: both; }

 

Your help is 'urgently' needed :unknw:

Best regards

luigie :yahoo:

The users input is being sent to /cgi-bin/guestbook.pl that is where you would then process it.

 

What have you coded in there?

  • Author
The users input is being sent to /cgi-bin/guestbook.pl that is where you would then process it.

 

What have you coded in there?

 

hi Ed_Stivala

aha! I get it, the pennies dropped. I've got a sub directory called cgi-bin (been wondering what it was meant for).

The folder is empty, is there anything I have to put into the directory to 'catch' all the info that is downloaded?

Best regards

luigie

Given how you have marked up your html, then you need a program written in Pearl called guestbook.pl put in your cgi-bin directory that takes the input fields from the html form and does what ever you want with them.

 

My advice is to read the thread that Dizzi recommended, decide what you want the form to do and then either learn how to write some code or hire someone to write it for you.

yup if it is just a simple contact form you are after then the best thing to do is use the thread I linked to as there is a tutorial on how to do one in there.

 

If you want the forum to do something else then say in this thread and someone would be be able to point you in the right direction :)

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.