View Full Version : Need to customise rego form
gwh362692
03-23-2009, 10:16 PM
Hi everyone,
I’ve just purchased the Registration Solution Pack. I need to alter it though in the following ways:
1) I need to add a Title drop down menu above “firstname”
2) I need to change the “City” field to “Suburb" and the “Zip” to “Postcode”.
3) I also need to remove the “Country” option.
I’ve previously purchased the Super Suite but I’m not sure which of the extensions to use in order to modify the rego form.
Also, I wanted to have the state’s menu populated dynamically from a table in MySQL – is there a way to do this?
Finally, I noticed that when I tested the rego form on my local server, the CAPTCHA image wasn’t showing – is there a reason for this?
Would really appreciate any advice to get the above issues solved.
Thanks for any help offered.
Ray Borduin
03-24-2009, 07:43 AM
1) You can add that in DW after the page is generated
2) Just change the label after it is created, that shouldn't be difficult... don't bother to change the form element names, that would add unnecessary complication.
3) Instead of removing it... make the input type="text" into type="hidden" and set its value to the country you want to use. You can move the hidden form element to a different row and delete the row so it will appear as if it is completely removed.
Captcha requires the GD library enabled on your php server... that is most likely the problem when viewing locally. You should be able to enable GD2 in your php.ini very easily... read more about the GD library at http://www.php.net.
gwh362692
03-24-2009, 09:43 AM
Thanks for the reply,
Regarding adding a Title drop down menu - I know how to add it in DW but what about the server side code? How do I add that?
Also your solutions regarding 2) and 3) seem to be a workaround. I assumed that having purchased the Super Suite that I would be able to make these kinds of revisions using the interface in the extensions. Isn't there a cleaner way to go?
I also asked about wanting to have the state’s menu populated dynamically from a table in MySQL – can you tell me if there is a way to do this? Is it better to create the registration system using the extensions in the Super Suite to create this dynamic effect? If yes, can you tell me which extensions are needed to reproduce what is found in the Registration Solution Pack?
Ray Borduin
03-24-2009, 09:52 AM
To get the list values from a mySQL table.
1) Create the table
2) Create a recordset
3) Use the "Dynamic" button in the list to set the values from the recordset
Our extensions are Dreamweaver add ons. They help you where DW doesn't have a solution, but depend on DW to do what it does well at the same time. If something is easy to do in DW then we probably haven't reinvented the wheel in our product.
These tools help you build things in Dreamweaver, they don't replace Dreamweaver or allow you to stop using it for what it already does well.
gwh362692
03-24-2009, 10:21 AM
Okay so I've been given the instructions on how to populate the list from a MySQL table. Where do I get the php code to insert the value into the users table? I mean the rest of the form populates the users table - how do I populate the title column?
Should I be submitting a support ticket for this type of indepth help request? I seem to be only getting half of the answers.
I asked the question about the Title drop down menu and the server side code. What do I do about solving that issue?
Ray Borduin
03-24-2009, 10:23 AM
You can update the server behavior on the page if you own DataAssist. Just double click on it to update the database insert server behavior.
gwh362692
03-24-2009, 10:28 AM
Okay I get that - thanks.
Since I'd be populating the States dropdown menu dynamically, I'd need to remove the current states code. Is there an easy way to do that?
Ray Borduin
03-24-2009, 10:29 AM
The same interface that allows you to populate the list will allow you to remove values.
gwh362692
03-24-2009, 10:30 AM
And the interface is part of DW right? Not a webassist interface?
Ray Borduin
03-24-2009, 01:15 PM
That is correct... the dynamic button in the properties inspector.
gwh362692
03-27-2009, 05:24 AM
Thanks for the reply,
I've just tried to implement all your suggestions and I can view users_Registration.php successfully when I test locally in my browser. I wasn't able to get the GD library enabled on my local testing server in order to view the CAPTCH graphic so I decided to upload everything to the remote server for testing. I put all the files in a subfolder up on my web space, but when I went to view the rego page I got the following errors:
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/officelink/www/www/st_thomas/Connections/localhost.php:12) in /home/officelink/www/www/st_thomas/WA_ValidationToolkit/WAVT_ValidatedForm_PHP.php on line 3
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/officelink/www/www/st_thomas/Connections/localhost.php:12) in /home/officelink/www/www/st_thomas/WA_ValidationToolkit/WAVT_ValidatedForm_PHP.php on line 3
No database selected
Do you know what these mean and why I can't view the page?
Ray Borduin
03-27-2009, 07:10 AM
looks like you might have a blank line in the file:
_thomas/Connections/localhost.php
on line 12. PHP is particular about blank lines and will throw this error often when they occur.
gwh362692
03-27-2009, 08:21 AM
Thanks - that removed the error remotely.
I also ended up downloading MAMP so that I could get the GD extension and test locally also. I'm able to view the form in the browser, but after filling it in and pressing the register button, nothing happens. I don't get any errors or anything and nothing gets inserted into the database.
I've attached a file containing the code. Would you be able to take a look to see what might be happening?
Appreciate your continued support.
Ray Borduin
03-27-2009, 11:37 AM
You would need to post a support incident if you want someone to work with you to debug your file. If you haven't changed anything, then it is likely that the problem isn't with the file you included in the first place, it is likely a problem with the globals setting.
gwh362692
03-27-2009, 05:42 PM
Okay thanks - I'll do that.
vBulletin® v3.8.1, Copyright ©2000-2012, Jelsoft Enterprises Ltd.