|

|
|

|
View unanswered posts | View active topics
| Author |
Message |
|
jburnard
|
Post subject: Posted: Fri Mar 06, 2009 7:22 pm |
|
|
Joined: Sat Jan 31, 2009 2:56 am Posts: 15
|
|
Thank you again. I think I have enough info to be dangerous now. I appreciate all your time!
|
|
| Top |
|
 |
|
jburnard
|
Post subject: Modify the form? Posted: Thu Mar 19, 2009 9:47 pm |
|
|
Joined: Sat Jan 31, 2009 2:56 am Posts: 15
|
|
Hi again,
Things are going great with the MLM. I'd like to be able to remove fields for First name and Last name in one instance. So for example, I'm using the
subscribe_single_fixed.php
file that asks for email, first, last. Can you tell me how to modify that file to just ask for email? I know it's just a matter of excluding some of the PHP but I've tried in a couple cases and just get errors.
Any input is most appreciated.
Thanks again.
|
|
| Top |
|
 |
|
stanbusk
|
Post subject: Posted: Fri Mar 20, 2009 11:46 am |
|
|
 |
| Site Admin |
 |
Joined: Wed Dec 28, 2005 9:13 pm Posts: 6732
|
|
Just load the file with Dreamweaver and remove those fields. That's all.
|
|
| Top |
|
 |
|
jburnard
|
Post subject: Posted: Fri Mar 20, 2009 1:36 pm |
|
|
Joined: Sat Jan 31, 2009 2:56 am Posts: 15
|
|
Hmm, well it can't be much easier than that! I did try that but I also renamed the file and it seemed like it was error checking and going back to the original file. I'll try again. Thanks!
|
|
| Top |
|
 |
|
jburnard
|
Post subject: Posted: Fri Mar 20, 2009 9:57 pm |
|
|
Joined: Sat Jan 31, 2009 2:56 am Posts: 15
|
|
Ok I tried it again but didn't change the file name as to not mess anything up. So my input form shows just what I want but when you submit it I get an error that says:
Please fix the following issues
Enter your fist name in the fist name text box
Enter your last name in the last name text box
Do I need to change something so that it's not checking for those fields?
Thanks much!
|
|
| Top |
|
 |
|
stanbusk
|
Post subject: Posted: Mon Mar 23, 2009 11:29 am |
|
|
 |
| Site Admin |
 |
Joined: Wed Dec 28, 2005 9:13 pm Posts: 6732
|
|
Yes, remove the PHP code related to those imputs. You should remove:
if ( isset( $_REQUEST['firstname'] ) && !empty( $_REQUEST['firstname'] ) ) { $firstname = $_REQUEST['firstname']; }
if ( isset( $_REQUEST['lastname'] ) && !empty( $_REQUEST['lastname'] ) ) { $lastname = $_REQUEST['lastname']; }
and
if ( $firstname == "" ) { $errors[] = "Enter your fist name in the fist name text box"; $wrong['firstname'] = TRUE; }
if ( $lastname == "" ) { $errors[] = "Enter your last name in the last name text box"; $wrong['lastname'] = TRUE; }
Those lines are on the very beginning of the file.
|
|
| Top |
|
 |
|
jburnard
|
Post subject: Posted: Mon Mar 23, 2009 10:32 pm |
|
|
Joined: Sat Jan 31, 2009 2:56 am Posts: 15
|
|
Thanks again, that's just what I needed!
|
|
| Top |
|
 |
Who is online |
Users browsing this forum: No registered users and 2 guests |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|
|

|