www.webdeveloper.com
Results 1 to 7 of 7

Thread: please help with this code

  1. #1
    Join Date
    Jan 2003
    Location
    CA
    Posts
    42

    Unhappy please help with this code

    I have a script that users can create their own webpage. I need to add 2 text boxes for users to add to it, the script now only has 1. I also want the user to be able to email thier friends & family that has a link to the site of their page, i.e., http://www.mydomain.com/members/username.html. This is the address to thier sites now but I need it in a link in the email along with a .txt file so that we may add our own "marketing" sales pitch. Can someone please help me!! The form uses mrpagemaker.cgi and I have included that file as well. I am a newbie, please be gentle. THANKS IN ADVANCE!
    Jessica

    Here is the html page:
    Attached Files Attached Files

  2. #2
    Join Date
    Jan 2003
    Location
    CA
    Posts
    42

    HERE IS THE .CGI FILE

    OOPS I FORGOT THE CGI FILE
    Attached Files Attached Files

  3. #3
    Join Date
    Nov 2002
    Location
    NY, USA
    Posts
    731
    That script is filled with security holes and bad programming practices. My suggest would be to read up on Perl programming and rework the script before you toy with the finishing touches.
    for(split(//,'))*))91:+9.*4:1A1+9,1))2*:..)))2*:31.-1)4131)1))2*:3)"'))
    {for(ord){$i+=$_&7;grep(vec($s,$i++,1)=1,1..($_>>3)-4);}}print"$s\n";

  4. #4
    Join Date
    Jan 2003
    Location
    CA
    Posts
    42
    bad programming? Security does not need to be an issue because the content is not important. I appreciate the reply,however, I just wanted to know if what I needed could be done? Adding a simple text box and being able to have the user send their page link in an email doesn't seem that intense as far as programming, it's just a simple matter of how basic is it. The program works perfectly now, I just need to tweek it a little.

  5. #5
    Join Date
    Nov 2002
    Location
    NY, USA
    Posts
    731
    bad programming? Security does not need to be an issue because the content is not important
    Security is always important.

    For a textbox all you need to do is print out the HTML for it.
    Code:
    print q`<input type="text" name="name">`;
    while replacing the value of name to your own descriptive name (I don't know what you plan on using this field for).

    To add the URL to the email you just need to add whatever URL you want to send in the same way all the other lines are printed in the Send_Email subroutine.
    Code:
    print MAIL "Page link: $the_url_you_want_to_send\n";
    along with a .txt file
    To send an attachment you should use the MIME::Lite module and follow the instructions in their documentation.
    for(split(//,'))*))91:+9.*4:1A1+9,1))2*:..)))2*:31.-1)4131)1))2*:3)"'))
    {for(ord){$i+=$_&7;grep(vec($s,$i++,1)=1,1..($_>>3)-4);}}print"$s\n";

  6. #6
    Join Date
    Jan 2003
    Location
    CA
    Posts
    42
    WHEW! I thought you were going to really get irritated with me...it's hard to get things cross when you can only type it. Well thanks! Question...when the users create this page and click "create page" the script gives them the URL automatically,i.e., http://www.domainname.com/members/usersname.html
    From the "create page" how can I enter a little email form with about 5 inserts for email addresses (like a numerous "tell a friend") and the code goes into the email....did I say it right?


    To add the URL to the email you just need to add whatever URL you want to send in the same way all the other lines are printed in the Send_Email subroutine.
    code:--------------------------------------------------------------------------------print MAIL "Page link: $the_url_you_want_to_send\n";--------------------------------------------------------------------------------

  7. #7
    Join Date
    Jan 2003
    Location
    CA
    Posts
    42
    Could you look at it for me PLEASE....I am really trying to get this finished.....deadlines.....

    http://www.partytimeprinting.com/mem...rty/index.html

    Make up a username & try & see what I am talking about. There is a paragraph to enter text "maintext" and there are 2 others below. The code now transfers everything over to the "created page"...I need to add the other 2, "maintext2" and "maintext3" so that they will also transfer over.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles