Yii Framework Forum: Create Contact Form To Send Email To Saved Email Address From Table - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Create Contact Form To Send Email To Saved Email Address From Table

#1 User is offline   beingyii 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 15
  • Joined: 24-September 13

Posted 23 April 2014 - 04:52 AM

I have a contact form which is generated by yiic.. i want a contact form to send email to the email address which is saved in table instead of specified in param..

in table having following fields id name emailid description prise image

model is Adds

now i want a contact form by which all user can contact to the particular add for this i want to fetch the emailid from add table...

i managed to create contact page for add model which is same as yiic generated contact page..

but how to fetch emailid for a particular add???

help me.. Thanks In Advance..
0

#2 User is offline   Abhishek Shah 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 89
  • Joined: 20-July 12
  • Location:New Jersey,USA

Posted 28 April 2014 - 03:44 AM

View Postbeingyii, on 23 April 2014 - 04:52 AM, said:

I have a contact form which is generated by yiic.. i want a contact form to send email to the email address which is saved in table instead of specified in param..

in table having following fields id name emailid description prise image

model is Adds

now i want a contact form by which all user can contact to the particular add for this i want to fetch the emailid from add table...

i managed to create contact page for add model which is same as yiic generated contact page..

but how to fetch emailid for a particular add???

help me.. Thanks In Advance..

you can use autocomplete for that,make autocomplete with query,which find email from your criteria,so when user will type a character,related email will be in dropdown,and he can select email.In dropdown you can show email with add name in bracket.
like,email(Ad) So user can understand it.
Feel free to ask for help,
Abhishek.
Freelancer.
Yii Basic Gii With Export Pdf Excel
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users