• Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

AltME groups: search

Help · search scripts · search articles · search mailing list

results summary

worldhits
r4wp4382
r3wp44224
total:48606

results window for this page: [start: 201 end: 300]

world-name: r4wp

Group: #Red ... Red language group [web-public]
Arnold:
3-Jun-2012
Yes, but still we want to help where we can. Taking over simple tasks 
to free DocKimble for more complex work that is of yet above our 
abilities. So Doc, try and delegate some simple tasks to this community.
Arnold:
3-Jun-2012
It is easier to start with these kinds of tasks than to fork Red 
on Github and then wondering about and think of somthing useful to 
contribute.
Arnold:
4-Jun-2012
I don't know what you mean by that. A library or library-binding 
that is interesting to me? Okay let's say I find it important to 
use Red as I do with REBOL on my Apache driven website (no option 
to choose the server with my webhostingservice) to process rebol 
scripts and rsp scripts. I think there is a world of Red users to 
be won if Red could do this, at least we would be able to run Red/Redsp 
scripts on the apacheservers potential customers will have their 
websites hosted on, if you still can follow, they may not be too 
enthousiast changing websitehosting services only because we have 
some fun Rebol/Red scripting to offer. So where would I start?
Arnold:
4-Jun-2012
I guess so. I see it like a compiled Red compiler deciding if the 
called script has already been compiled, if so the script is executed, 
but if no match is found b'tween the compiled script and source it 
will be (re)compiled and then executed.
Kaj:
4-Jun-2012
I've never understood how people can look at an unfinished volunteer 
platform such as Red or Syllable and not see scores of interesting 
things to do, or think they have to wait for some magic milestone, 
so it's probably me
Kaj:
4-Jun-2012
But there you go: using Red on Apache is a very concrete and interesting 
task
Kaj:
4-Jun-2012
Red is actually quite suitable for CGI, because the compiled executables 
are absolutely tiny, like they were in languages such as C when CGI 
was introduced. This means the performance will be quite good, not 
like the performance hit CGI suffers with heavy modern programming 
environments such as REBOL where the whole virtual machine needs 
to be started for every request. At the same time, you still have 
the advantages that made CGI popular: simplicity, robustness and 
security
Kaj:
4-Jun-2012
You'll have to research the CGI interface a bit and maybe make it 
like the REBOL one. It's quite simple: you need standard output, 
which is just printing, standard input, and reading environment variables
Kaj:
4-Jun-2012
Moving up, you could write a FastCGI server that would solve that 
problem and would also be more performant
Kaj:
4-Jun-2012
I think the FastCGI server is doable now. Instead of writing a complete 
one, you could probably also find a library written in C and bind 
to it
DocKimbel:
6-Jun-2012
@Graham and others: I should have wrote you earlier about what I 
am currently doing instead of leaving you with no info, sorry for 
that, I was very busy these last weeks, with both real life events 
(good ones ;-)) and a new customer from which I accepted a short-term 
job to help pay the bills. The contributions I've received so far 
*are* helpful and I can't thank enough all the people that made donations! 
But their are not enough to cover all my expenses here, if I could 
get 3-4 times more from donations, that would be perfect, but as 
long as the userbase won't be larger I think that it won't be  possible.


So I've accepted a short contract (til end of june) to build a trading 
bot generator with a visual editor (GUI in View) that emits MQ4 language 
source code for feeding the Metatrader4 application. Of course, I'm 
building it in REBOL (Red not ready yet for that). The plan was to 
work part-time on it and part-time on Red, but these last two weeks 
I had to work almost only on that project. I still have a few days 
of intensive work on it, then I'll switch to part-time.


I have quite a lot of code to commit (the Red compiler), but I'll 
wait to finish first the internal modifications in Red/System (to 
ease the integration with Red) before publishing it.
DocKimbel:
7-Jun-2012
Pekr: right, 400 EUR/month would be enough. 


I believe that the Raspberry pi board has a huge potential, we should 
try our best to support it and build tools for it in Red.
Arnold:
7-Jun-2012
I somehow had the idea you lived in/near Paris. I must relocate you 
elsewhere, mountains nearby and cost of living only 400 euro's a 
month. (including the ski-pass in the winter sure thing) :-)
DocKimbel:
7-Jun-2012
I used to live in Paris, six months ago I moved to Podgorica, main 
city in Montenegro, where life is much nicer and cheaper than Paris. 
One of the main reason is being able to continue working on Red. 
Ski-pass in the winter is about 15€/day.
Jerry:
11-Jun-2012
I made a donation to Red Project via PayPal, and 10% (50 Euro) of 
my payment was missing (excluding any fees). I made a phone call 
to PayPal to find out why they "swallowed" my money, They checked 
the records and told me indeed 10% was gone, and they were not sure 
why. They gonna investigate it and give the the answer. Well, How 
luck I am that I check with Doc, or the money is just gone. Shame 
on PayPal.
Pekr:
12-Jun-2012
Hmm, then I hope Doc, that you always receive 50 EUR, when I send 
the donation? I would be surprised, if it was lower amount of money, 
and would have to use wire-transfer instead of the PayPal in such 
a case ...
Gerard:
13-Jun-2012
While dreaming about the next best thing coming from the Red community 
... here are some IDEs for ARMs processors http://www.ti.com/lsds/ti/dsp/support/dev_tool/ccs_overview.page
 and then some emulators and analyzers http://www.ti.com/lsds/ti/dsp/support/emulator_analyzer_overview.page
Rebolek:
14-Jun-2012
I've tried running Red/System on my Synology USBstation 2 and hello-world.reds 
works without problem. Great! Howerev, when I tried to run Kai's 
C-linrary (or other extensions), I ended up with this error:
Rebolek:
14-Jun-2012
Well, some progress! I changed atexit to __cxa_atexit and now I can 
run cURL test (with "Couldn't resolve host name" error). Mandelbrot 
and Fibonacci tests from C-library examples give me "Illegal instruction" 
error.
Rebolek:
14-Jun-2012
Yes, it's got ARMv5TE processor. I guess it doesn't have FPU unit 
(so no wonder Mandelbrot test  doesn't run). I'm running some tests 
and I've got the Fibonacci demo running (after removing to-float).
Janko:
14-Jun-2012
Hi, I am looking into OAuth. I see (and thank you a lot for this!) 
that Chriss Ross Gill created OAuth client part in the twitter library: 
http://reb4.me/r/twitter.html, I am reading into it, but does he 
or anyone else know how much additional work would be needed to do 
the rebol OAuth server part ?
Janko:
14-Jun-2012
Ah sorry! I wanted to post this to web, but got "internet got busy" 
and while I was trying to fix it I posted here
Kaj:
14-Jun-2012
All I know is that you didn't get cURL and GTK working on ARM Debian
Pekr:
14-Jun-2012
Doc - I might have idea of how you will aproach port model in Red. 
What about events? Carl said, R3 had fast implementation, but we 
also looked into libraries like liboop, libevent, etc. What is the 
plan in that regard? I expect you created Red because you envisioned 
the concurrency is a must? I hope that RED will be a killer in fast 
event handling and concurrency :-)
DocKimbel:
14-Jun-2012
Well, we need to integrate an R3-like async port/event system with 
multithreading (both internal threads and OS threads), that's the 
real challenge. So port! might be implemented as a sub-class of actor! 
(basically a message-based object). This is still rought as I haven't 
worked on the details of ports and actors yet. I'm not sure that 
using an external library for that very sensitive part would be a 
good idea, because we probably only need a tiny subset of the features 
provided by those libs and we need a perfect integration with the 
rest of the runtime/language. You can count of me to implement the 
solution that will give us the best performances, as this is a critical 
feature for being able to implement state-of-the-art servers...and 
you know that we want a very fast Cheyenne v2. ;-)
Pekr:
14-Jun-2012
Well, R3 moved to devices abstraction, that's first difference to 
R2 - an abstracted platform agnostic Core and surroundings. Not sure 
if there is any practical benefit ...
DocKimbel:
14-Jun-2012
I think that REBOL only uses select() for low level events handling, 
I would be surprized if it used the much faster alternatives (which 
are the core of libevent and derivatives).
Pekr:
14-Jun-2012
you can look into Other section - that can be good reminder into 
ports, schemes, devices and low level event system - http://rebol.net/wiki/Table_Of_Contents
Kaj:
14-Jun-2012
Yes, R3 ports are thinner and more specialised
Gerard:
14-Jun-2012
Recently tried to run the Hello World on my Android based Galaxy 
Samsung Tab 10 but after seeing the "executing ..." msg. Nothing 
appeared. I will try to look at what could be done but I suspect 
I also have to first learn a bit more about Android and my machine 
to help ... I'm very patient and began to read about the ARM. and 
Android itself. What an evolving world we live in ...
BrianH:
15-Jun-2012
Steeve: first, second and so on are not actions in R3, they just 
call PICK. PICK is implemented for ports.
BrianH:
15-Jun-2012
You can make a port work a lot like a series, and you mostly did 
with the virtual block scheme. FOREACH and PARSE not working on ports 
can be a bit annoying, but they would only work on a subset of the 
port types that either work like series or (theoretically) like files 
(like open/direct file ports in R2).
Gerard:
15-Jun-2012
@Doc: Android version 3.1 and kernel is 2.6.36.3
Gerard:
15-Jun-2012
@Doc: Seem there is a new update for my system. I will first download 
and install it and I'll retry later the Red/system app in Native 
mode.
Henrik:
15-Jun-2012
Doc, have you looked at Flattr integration? I've only just heard 
of it, but maybe it's another donation option for those of us, who 
are unable to use Paypal and wary about banktransfers.
DocKimbel:
15-Jun-2012
Flattr: yes, and I have received at least one donation on it, but 
can't retrieve it unless I accept to pay a monthly fee. I understand 
the logic behind it, but don't find it very handy.
DocKimbel:
15-Jun-2012
If Red wouldn't have series and blocks, it wouldn't have much in 
common with REBOL. ;-)
GiuseppeC:
15-Jun-2012
Sorry Doc, I have made the wrong question: I don't see in the documentation 
block and series manipulation functions. Maybe I am looking at the 
wrong place ?
DocKimbel:
15-Jun-2012
Red and Red/System are two different things that you should not confuse.
Gerard:
15-Jun-2012
@Doc : No better success even if running from NativeEXE.apk version 
0.5 and Android version 3.2 - will continue to read before being 
able to investigate myself what could be done - Please don't loose 
your time on this case for now - You have much better  to do ... 
even if it's annoying a bit. I don't despair but I really can't be 
useful to you for now... my understanding of the inner working of 
this stuff exceeds my current capabilities !
Andreas:
17-Jun-2012
a "hello world!" written in and compiled by red/system running on 
a raspberry pi:

[pi-:-raspberrypi]:~$ ./hello-reds.arm 
hello from red/system!

([pi-:-raspberrypi]:~$ uname -a

Linux raspberrypi 3.1.9+ #90 Wed Apr 18 18:23:05 BST 2012 armv6l 
GNU/Linux)
Endo:
20-Jun-2012
we can add red-lang.org and cheyenne-server.org links to the external 
references.
Kaj:
20-Jun-2012
However, Windows, OS X and Android are missing from the OS entries
DocKimbel:
27-Jun-2012
Evgeniy: I am not sure if a strict superset of REBOL is doable in 
Red without introducing some important runtime overhead, making the 
compilation approach much less efficient, so less useful. I'll try 
to push it as far as possible and will stop when we loose too much 
performances.
DocKimbel:
27-Jun-2012
Unfortunately yes, but it should end in about ten days, so I could 
finally get back to the interesting stuff. I'm becoming an MQL4 language 
expert now, and I really don't like that (even if it can make me 
see some interesting niche opportunities for a Red dialect). ;-)
Rebolek:
29-Jun-2012
another question :) how to get pointer to integer! ? as byte-ptr! 
converts the value and doesn't return address.
Endo:
5-Jul-2012
OS APIs and systems don't need that feature. And C++ is not that 
low-level, as you need to use C if you want to use WinAPIs or kernel 
functions.
OOP is a high level feature and no use in low level APIs.
PeterWood:
5-Jul-2012
I believe that it will be possible to access all Red datatypes from 
Red/System via the Red Memory Manager (which is being built in Red/System). 
I doubt that Red/System will have any built-in functions to traverse 
and manipulate series though.
Endo:
5-Jul-2012
I don't think it is useful for Red/System, look at Kaj's bindings, 
its all system structures, API calls, enumerations and a few functions.

When we have Red we (or someone) can write wrappers in Red, so "normal" 
users will not need to use Red/System.

And there is no use series etc. kind of high level features in bindings/API/kernel 
calls.
DocKimbel:
5-Jul-2012
No object! nor series! support planned for Red/System, remember that's 
supposed to be just a low-level dialect callable from Red meant for 
system programming. However, as Peter mentioned, it will be possible 
to access Red values and actions (mainly series and I/O actions) 
from Red/System when deeper interfacing with Red is needed.


OOP is just not necessary to Red/System, only code and data encapsulation 
is IMO worth adding in the form of a module system. I'm not a big 
fan of intensive use of OOP, as done in C++ or Java (or I'm probably 
just repelled by class-based OOP). I find prototype-based OOP (REBOL, 
Javascript,...) much more appealing and will support it in Red.
DocKimbel:
5-Jul-2012
A good and non-ambiguous syntax would be needed for that though.
Kaj:
5-Jul-2012
I thought about implementing some basic series functions in Red/System, 
but they would be primitive and hardly used once the Red memory manager 
is available. There could still be a place for them in low level 
coding, but right now it doesn't justify the effort for me
BrianH:
5-Jul-2012
Giuseppe, those are called properties. The getter/setter functions 
you often find in GUIs are basically the same thing, but properties 
hide that in regular assignment syntax. We don't need getter properties 
in REBOL-like languages because we don't use parentheses to call 
functions, but setter functions appearing to be assignment statements 
might appeal to some.


I've had a lot of experience with properties in languages like Delphi; 
most of the popular languages that currently have property support, 
either in syntax or as a convention, are derived from Delphi. It 
makes code a little easier to write, and a lot harder to debug. The 
main advantage to implementing them in Red or R3 would be to make 
it easier to interoperate with .NET or COM objects.


Automatic delegation is something else. With automatic delegation, 
you automatically forward a method call from one object to another, 
just by declaring it as such. That doesn't really work in REBOL-style 
direct-bound functions because we don't have an implicit self parameter 
(we have self, but it's not a parameter). Red would need to have 
a completely different function binding model for that kind of thing 
to work; which it would likely have anyways, due to it being compiled 
rather than interpreted.
Rebolek:
10-Jul-2012
If I create struct! inside function and return pointer to that struct 
(as I cannot return struct), how can I get the struct from that pointer?
DocKimbel:
10-Jul-2012
Structs are always passed and manipulated by reference. You should 
be able to return struct! (unless there's a bug).
Rebolek:
11-Jul-2012
If I run this code

s: declare struct! [
	f [float!]
]
s/f: 12345678.9
p: as byte-ptr! s
v: p/value
w: 256 * as integer! p/value
x: 256 * as integer! v
print [x ".." w]

I get  this result: 52480..4194304


Why the difference? Shouldn't W and X be same as V is same as P/VALUE?
PeterWood:
11-Jul-2012
Why the difference? Shouldn't W and X be same as V is same as P/VALUE? 
  I checekd that v = p/value so it would appear to be the type casting 
that is the problem. I checekd the spec and casting a byte! to and 
integer! should be okay. So it seems like it is a bug.
PeterWood:
11-Jul-2012
I added prints of s1 and s2 to your program; this is the output :

s1 9348
s2 9348
PeterWood:
11-Jul-2012
Only by declaring the struct! in your main program and passing it 
(its reference) as an arugment:

f: func [
	val [integer!]
	s [struct! [value [integer!]]]
][
	s/value: val
]
Kaj:
11-Jul-2012
There's no problem in allocating memory to return from a function, 
but you have to use ALLOCATE and later FREE it
Kaj:
11-Jul-2012
You don't have to declare an intermediate struct and copy it
Group: Databases ... group to discuss various database issues and drivers [web-public]
james_nak:
28-Apr-2012
Arnold, so you have the same set-up as I do. Plesk as the main control 
panel and phpadmin (via Plesk and self-installed). It's within phpadmin 
that I am able to grant rights to my host's IP as described above. 
Before this, I had some sites that had cPanel and I did the granting 
from there.
james_nak:
30-Apr-2012
And when you are in the "Home" Page, do you not have a "priviledges" 
tab?
james_nak:
30-Apr-2012
Perhaps you can check the config file and make sure you are logged 
in as the admin.
Endo:
30-Apr-2012
you can connect from local and configure your server using SQL commands.
did you try TELNET to your server's 3306 port?
TomBon:
9-May-2012
if you are looking for a fultext/searchengine don't miss elasticsearch. 
scales well, based on lucene, very fast, simple to use.

the interesting part is the compact rest api the storage model and 
the number of different analysers, tokenizer (snowball, ngram, etc). 

you can use elasticsearch also as a standalone nosql database with 
rebol. speaks completly json. 

working currently with 1.2 m documents + datastorage on a single 
machine.  runs very smooth. 

evaluated other components before (sphinx, xapian, tokyo etc.) elasticsearch 
has it all and is much cleaner to handle than solr.
Endo:
16-May-2012
In rebdb.r file, db-update function takes columns parameter as word! 
or block! and says "Columns to set".
So I think it supports updating multiple columns at once.
GiuseppeC:
17-May-2012
I whish to use ODBC to manipulate ACCESS 2007 databases.

Where I could find some documentation about REBOL and ODBC and ODBC 
itself ?
Endo:
17-May-2012
BrianH and Kaj can answer more correctly about R3 && ODBC.
GiuseppeC:
17-May-2012
R2 and ODBC
BrianH:
18-May-2012
I don't know about the datatype support when connecting to Access 
2007 databases; what Endo said was related to SQL Server. However, 
I have Access 2010 here and 2007 at home so I can run some tests 
later today if you like.
BrianH:
18-May-2012
R2 is more ambitious about datatype conversion than the R3 extension, 
which only handles SQL datatypes that are directly compatible with 
64bit or smaller R3 datatypes. However, R2 doesn't handle floating-point 
datatypes, and R3 does.
Pekr:
21-Jul-2012
After some time, I gave a try to the Sqlite DB. It kind of improved 
in some areas, even locking, so it is even more useable in concurrent 
environment. However - it still uses per file lock, and although 
it uses just milliseconds to lock the file, I have a problem with 
one aproach I am trying to take, and hence maybe the Sqlite is not 
right DB for my purpose, or my aproach is not correct. The reason 
why I wanted to use sqlite DB is, that it is easily movable to other 
target, and its performance is fine for even semi heavy solutions. 
I don't want to be dependant upon the some kind of "server", which 
stores its files who knows where, and to which I don't have proper 
access in cgi environment, unless I am a DB admin or server admin 
...
Pekr:
21-Jul-2012
Simply put - millisecond lock time is enough fine grained for my 
purposes, but - let's assume you have several ppl working on some 
customer list, where each customer has some orders. Those ppl do 
select particular customer, and work with orders. What I want is 
- when some user selects particular customer, I need its record being 
locked. The trouble is, that when I use BEGIN transaction for sqlite, 
it locks all the file, and does not allow other process to do write 
to the DB.


I wonder, if I can somehow obey it, not really having per record 
locking. I would have to implement my own lock mechanism (not locking 
in fact), not allowing others select/enter customer record, when 
some other person is working on it?
ChristianE:
5-Sep-2012
I've just updated the R3 ODBC Extension to work with more SQL types 
and, with the support of BrianH, fixed and improved the boot code 
OPEN and COPY actors.


The extension is available over at Github in both source form as 
well as a DLL compiled for windows, see https://github.com/gurzgri/r3-odbc
Gregg:
8-Sep-2012
Is anyone using Doc's MySql protocol (v4.1 1.3.0) with MySql 5.5.24-cll, 
protocol v10? 


I have a client migrating to a new host. We've been using 1.2.1 against 
mysql 5.0.95, but 5.5 triggers the client auth error. Moving to Doc's 
4.1 version solved that, but a simple test query returns an empty 
block. 


Can't rule out a data migration error yet, as things just moved and 
getting connected was the frist step. Just curious if someone is 
known to have this combo working.
Janko:
9-Sep-2012
I just upgraded local ubutu and I made the rebol work with ia32-libs 
again, now rebol mysql client is givin me auth error
DocKimbel:
9-Sep-2012
IIRC, it was missing some minor feature support from the protocol 
and good new test cases...
Chris:
25-Sep-2012
Thought I'd share this in case anyone found it useful (or had any 
suggestions/criticisms).  First part is a description in REBOL of 
a database schema (sample here: http://reb4.me/r/schema-sample), 
second part is a function that generates the MySQL code to create 
the database/tables. I'd like to add functions to analyse database 
schemas against my REBOL schema and create 'ALTER' statements as 
necessary.  All in good time...
afsanehsamim:
9-Nov-2012
guys , i have one project (crossword )which uses mysql database! 
i want use mysql driver ,i know how  we can create table and make 
connectivity with database !  crossword should show on web page ,and 
when user put characters in each field ,then press button ,it will 
chek with database and if it is correct ,user can continue otherwise 
shows error message ....i created crossword table with cgi and is 
working on web ,i have created database as well,now my problem is 
i do not know how can i fetch data and comparing with database? is 
there anybody for helping my mini project????
afsanehsamim:
9-Nov-2012
my understanding of work steps is : i have two files *.cgi and *.r 
 ,in cgi file i created crossword that shows on web page ... in data.r 
 i have made connectivity with database and create table ... and 
my codes are as following : in cgi file:
afsanehsamim:
9-Nov-2012
and my data.r codes :
afsanehsamim:
9-Nov-2012
and what extension should i use ? .r ???/
Arnold:
9-Nov-2012
learning comes with a lot of try and err even for a 'simple' language 
as REBOL


Probably yes and have your apache server set up right for .r files
afsanehsamim:
10-Nov-2012
thank you Arnold.... i van fetch data from database :) ...i am working 
on compare two values (value that is entered by user and value that 
is correct )...
Arnold:
10-Nov-2012
so you have put the users answer also in a mySQL table?

read both tablerows from the tables into different variables and 
compare the subfields of the returned rows result1/fielda result2/fielda
afsanehsamim:
11-Nov-2012
if  user wants insert values to table and it should save in database 
,what is the command for that ???
Pekr:
11-Nov-2012
you see? The use four ? ? ? ?, and after the string { }, there are 
four values fname lname title phone
afsanehsamim:
11-Nov-2012
i completely underestand !!!! but  fname,lname,title,phone are string 
and before query ,they are defiend as : fname: "Johnny"
lname: "Johnson"
title: "President"
phone: "(707) 555-1212"
Pekr:
11-Nov-2012
yes, you have basically two options:


1) work with string - insert db {insert into data1 ....} - you simply 
construct the DB string directly


2) work with block - insert db ["initial string here, contatining 
values(?)" value] - which allows to work with rebol blocks and evaluate 
some things ...
Pekr:
11-Nov-2012
I think, that your script is wrongly constructed! What you seem to 
do is to just print a form, which then gets delivered to user's browser 
screen. But at that time, there is no value yet. You should study, 
how to do CGI in REBOL. You need a separate html form, then you need 
to read CGI values and store them in a DB ...
afsanehsamim:
11-Nov-2012
but in those links ,i can not find database example! i read that 
link before ,i created html form and cgi as well, it is working properly 
... the point is when user enter input and click submit it goes to 
cgi page. i need save that input in database ...plz guid me or show 
me one example how can i save value from the form into db?
Pekr:
11-Nov-2012
then you pick a value and save it ...
Pekr:
11-Nov-2012
there are two things - 1) you have to write a form, basically a html 
file, with fields, etc., and submit button, linking it to your cgi 
script 2) you have to write a CGI script, being able to read submitted 
values ...
Arnold:
11-Nov-2012
You first check that the value is acceptable for what can be expected. 
This is to prevent SQL injections and other malicious input from 
hackers/innocent users and monkeys using your application. Than you 
insert a SQL command to insert or update  the mysql database just 
like you did when you did with your select statement before.

 mijnquery: "INSERT INTO cms_artikel (titel, tagregel, sectie, toegevoegd, 
 artikel_tekst) VALUES ('"

 mijnquery: append mijnquery rejoin [titel "', '" tagregel "', '" 
 desectie "', '" toegevoegd "', '" artikel-tekst "')"]
 insert db mijnquery

 The names after INTO are the fieldnames of the table cms_artikel 
 the ones after VALUES are the REBOL variables that get replaced by 
 their values
Pekr:
12-Nov-2012
Ladislav - thank you. It is apparent, that what afsanehsamim is missing 
is the basic knowledge of how webserver stuff works between the client 
and the server. Examples at rebol.com are pretty straightforward. 
The only chance is to really create a simple example for him ...
Pekr:
12-Nov-2012
Create 2 files. Call the first one e.g. cgi-test.html, and upload 
it to your server. The only thing you have to change is the link 
to your .cgi script in there:

<HTML>
<TITLE>Simple Web Form</TITLE>
<BODY>
<b>Simple Web Form</b><p>
<FORM ACTION="http://www.xidys.com/cgi-bin/cgi-test.cgi">
<INPUT TYPE="TEXT" NAME="Field" SIZE="25"><BR>
<INPUT TYPE="SUBMIT" NAME="Submit" VALUE="Submit">
</FORM>
</BODY>
</HTML>



Create a second file, called cgi-test.cgi (it has to align to how 
you name it in the above source file). Upload it to your cgi working 
directory. Remember to change the first line to contain the path, 
where your REBOL executable is placed:

#!/usr/local/bin/rebcmd -sqc

REBOL []

print join "Content-type: text/plain" newline
start: now/time/precise

submitted: decode-cgi read-cgi
values: construct submitted

prin "Submitted: " print mold submitted
prin "values: " print mold values
prin "values/field: " print mold values/field

print now/time/precise - start
print newline
 

Now go to your URL, and try to submit some values. You can test it 
on my site at: http://www.xidys.com/cgi-test.html
afsanehsamim:
16-Nov-2012
Thankyou so much ladislav and Pekr ... guys i  underestand whatever 
you said ... Pekr : you meant i should first decode values after 
that should values save in database? i have two files and both work 
properly! one html and another one is cgi ! i did your codes as well 
... now plz tell me what is the next step ?  As i told you before 
i should save value in database  ,it is one part of my project !!!! 
:(  i did this link  http://www.rebol.com/docs/cgi2.html#section-2
and i underestood ...    http://www.rebol.com/docs/cgi2.html#section-2http://www.rebol.com/docs/cgi2.html#section-2
afsanehsamim:
16-Nov-2012
i decoded my values which i got from the form! my cgi and html are 
working ,plz tell me what should i do?
TomBon:
16-Nov-2012
if so, you have to add your mysql connection parameters to your script., 
open a mysql port and do an sql insert to your table.
201 / 4860612[3] 45...483484485486487