PDA

View Full Version : Forms in vbulletin


getthat
08-24-2004, 01:17 PM
Hi,

I'm trying to add some new functionalities to the vbAdvanced CMPS but I've got a problem with the forms.

I've got a few pages on my site were people can add information to the database via a form. A typical form consists of these lines : <input type="text" class="bginput" size = "50" name="newprogname">

If the user fills in the form (he adds the name of newprogname) and clicks on submit the user goes from url/step1 to url/step2 (This is done via a redirection php file called redirect.php).

THE PROBLEM : when the user clicks on submit the parameter $newprogname is empty in step2 ! Can someone please help me ? PM me for the url or more information.

getthat
08-24-2004, 01:17 PM
Oh yeah, I'm using vb 3.0.3

amykhar
08-24-2004, 01:37 PM
In step 2, the value of the box needs to be set to $newprogramname

getthat
08-24-2004, 01:41 PM
Hy Amykhar,

In step 2 I'm doing an 'echo $newprogname' but it is empty ? For some reason the form doesn't send the value to the next page.

Getthat

amykhar
08-24-2004, 01:48 PM
Because globals are turned off. You need to use $GET_programname or $POST_programname, depending on the method the form used.

getthat
08-24-2004, 01:52 PM
Do you have some more info about globals (sorry, newby alert :->) ?

getthat
08-24-2004, 02:10 PM
Help, it is not yet working ! Somebody ?